Ejemplo n.º 1
0
 //posts ready message from child builder to mother builder
 public void PostReadyMessage(CommMessage msg)
 {
     ReadysndBlockingQ.enQ(msg);
 }
Ejemplo n.º 2
0
        //extracts ready messages sent from child builders using ready blocking queue
        public CommMessage GetReadyMessage()
        {
            CommMessage msg = ReadyrcvBlockingQ.deQ();

            return(msg);
        }
Ejemplo n.º 3
0
 /*-------------------------------------------------------< posts message to another Peer's queue >-------------------------------------------------------------*/
 //This is a non-service method that passes message to send thread for posting to service.
 public void PostMessage(CommMessage msg)
 {
     sndBlockingQ.enQ(msg);
 }
Ejemplo n.º 4
0
        /*--------------------------------------------------< Implement service method to extract messages from other Peers >------------------------------------------*/
        // This will often block on empty queue, so user should provide read thread.
        public CommMessage GetMessage()
        {
            CommMessage msg = rcvBlockingQ.deQ();

            return(msg);
        }