[zeromq-dev] event monitors and multiple io threads
Min
miniway at gmail.com
Thu Jan 10 14:26:59 CET 2013
Hi,
A ZMQ socket is not shared by multiple io_threads. Neither the
attached monitor_socket is.
So it should be thread-safe. Do you see any symptom the thread safety is
broken?
Thanks
Min
2013년 1월 10일 목요일에 Ben Gray님이 작성:
> I have been adding more event monitoring into a fork of 3.2.2 for
> auditing at where I work and so far I've been unable to find how the
> socket::monitor_event calls are thread safe.
>
> As far as I can tell they are called via the socket::event_* functions
> from a number of different io_objects which can happily exist on
> different io threads.
> If someone could point me in the correct direction then I can make
> sure my new events don't break anything important.
>
> The particular example I was tracing through is a bound push socket
> which selects, based on load, one io thread for the tcp_listener and
> then a potentially different io thread for each stream_engine
> generated from accepting incoming connections. Both of these objects
> are appear to have the same socket pointer and call event methods when
> things happen.
>
> Regards,
> Ben
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org <javascript:;>
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130110/5ad19f47/attachment.htm>
More information about the zeromq-dev
mailing list