[zeromq-dev] Want to use ZMQ socket in multithreading
bharatdsomani at gmail.com
Fri Jul 29 09:09:33 CEST 2016
I am creating socket in one thread and sharing this to be used in multiple
threads. But when I try to use it, sometimes I get error
Assertion failed: check () (src/msg.cpp:248)
I was breaking ZMQ's rule of sharing sockets among threads.
Is there any way to know whether the socket is currently in used (sending
data) state? If there is a way, I can check it before sending the data.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev