Quantcast
Channel: Active questions tagged zeromq - Stack Overflow
Viewing all articles
Browse latest Browse all 208

Can I use zmq_send() and zmq_recv() in different threads?

$
0
0

I know ZMQ guide says that the following is not thread-safe.

But I want use one thread receive data:zmq_poll() wait data come, then use zmq_recv() receive data; use another thread send data: zmq_send()

I want to know is this a right way to use ZMQ?In fact I have try it. The program core dump when call zmq_poll() once, but it only happen once and can't reappear.


Viewing all articles
Browse latest Browse all 208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>