[zeromq-dev] how to use ZeroMQ socket in multithread

黄颖志 nohuangyz at gmail.com
Tue May 19 06:24:07 CEST 2015


Thank you, but i don't understand i could use zeromq socket in multithread
if i adjust my code with zmq_poll.
你是中国人吧?可不可以加个微信交流呢?我的微信号是448935327.[?]

2015-05-15 21:18 GMT+08:00 张凯 <zhangkai.gis at 163.com>:

> It seems zeromq can not used in multithread.But you can adjust your code
> with zmq_poll.
>
>
> At 2015-05-14 20:50:23, "黄颖志" <nohuangyz at gmail.com> wrote:
>
> Hi every body,
>   Lastly, my J2EE project use ZeroMQ as a message system , In that
> project,  I want to encapsulate ZeroMQ socket as a high level API, so
> others could use that socket send messages if thay want . But the guide
> document says that ZeroMQ sockets are not thread safe.  How can I solve
> that problem. I don't want to create a new socket when sending some message
> through ZeroMQ every time.
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150519/f42cecdd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.gif
Type: image/gif
Size: 96 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150519/f42cecdd/attachment.gif>


More information about the zeromq-dev mailing list