ComputationalRadiationPhysics / graybat

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

ZMQ blocking wait on multikeymap and message queue instead of busy waiting #47

Closed erikzenker closed 8 years ago

erikzenker commented 8 years ago

The ZMQ CP consists of the thread that receives messages from other peers. These messages are written into a queue within a multikeymap. The acces to this data structure is locked by mutex, thus, no concurrent write exist. The main thread accesses the message queue by busy waiting. This busy should be replaced by a conditional_wait !

See this branch for first ideas.

erikzenker commented 8 years ago

Solved in #69