[zeromq-dev] Can zmq_socket be create in thread 1 and used by thread 2?
Ren, Wei (Nokia - CN/Hangzhou)
wei.ren at nokia.com
Wed May 6 04:51:39 CEST 2015
Hi
Could you please share your code?
It should be fine if only one thread touch the socket.
Brs
R.W.
+86 18626888319
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of ext ??
Sent: Wednesday, May 06, 2015 10:17 AM
To: zeromq-dev at lists.zeromq.org
Subject: [zeromq-dev] Can zmq_socket be create in thread 1 and used by thread 2?
Hello,
I knew that zmq_socket can not used in multi-thread.But Can I just create the socket in thread 1.Then use it in thread 2?Now I meet a problem.At first The sub can receive message.But when runs a few minutes.It can not receive message.I doubt It is because I create it in thread1 but use it in thread2.
Thanks,
zhangkai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150506/8ef7948e/attachment.htm>
More information about the zeromq-dev
mailing list