[zeromq-dev] Want to use ZMQ socket in multithreading
Bharat Somani
bharatdsomani at gmail.com
Fri Jul 29 09:09:33 CEST 2016
Hi All,
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.
Regards,
Bharat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160729/0fc6db81/attachment.htm>
More information about the zeromq-dev
mailing list