This PR implements the asyncRecv method for socket based communicaiton policies. This adds the new method tryDequeue to the message box. tryDequeue does not block when no messages for a particular set of keys is available.
On calling asyncRecv graybat tries first to recv a message. When no message is available, the user buffer is encapusalted into an event. The user can now try to receive a message again by calling ready() or wait until the message received by calling wait(). Finally, received data will be copied directly into the user buffer.
This PR implements the
asyncRecv
method for socket based communicaiton policies. This adds the new methodtryDequeue
to the message box.tryDequeue
does not block when no messages for a particular set of keys is available.On calling
asyncRecv
graybat tries first to recv a message. When no message is available, the user buffer is encapusalted into an event. The user can now try to receive a message again by callingready()
or wait until the message received by callingwait()
. Finally, received data will be copied directly into the user buffer.