public static void nodeThreadQueueMain(Object obj) { ThreadStartInfo info = (ThreadStartInfo)obj; MwsrThreadQueue queue = getInstance().createQueueForCurrentThread(); ThreadQueueProcessor proc = new ThreadQueueProcessor(queue); foreach (INodeFactory each in info.factories) { NodeBase node = each.create(); int ix = proc.addNode(node); ThreadQueuePostman postMan = new ThreadQueuePostman(queue, ix); SlotIdx idx_; UInt64 id_ = info.gmq.add(node.getNodeName(), postMan, out idx_); GMQTransport transport = new GMQTransport(info.gmq, node.getNodeName(), idx_, id_); node.initPlatform(info.platform); node.initTransport(transport); } proc.init(); proc.run(); }
public ThreadQueueProcessor(MwsrThreadQueue msgQueue) { this.msgQueue = msgQueue; }
public ThreadQueuePostman(MwsrThreadQueue msgQueue_, int recipientID_) { this.msgQueue = msgQueue_; this.recipientID = recipientID_; }