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 > [email protected] <javascript:;> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
