ComputationalRadiationPhysics / graybat

Graph Approach for Highly Generic Communication Schemes Based on Adaptive Topologies :satellite:
Other
8 stars 4 forks source link

Implementation of asyncRecv for socket based communication policies #95

Closed erikzenker closed 8 years ago

erikzenker commented 8 years ago

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.