[zeromq-dev] atomic ops
Martin Sustrik
sustrik at 250bpm.com
Wed Feb 8 22:37:13 CET 2012
On 08/02/12 19:15, Gary Wright wrote:
>
> On Feb 8, 2012, at 10:25 AM, john skaller wrote:
>> Interesting things is .. all this fuss about thread-safety .. and actually,
>> these atomic ops are used in the msg_t functions .. the ones least
>> likely to span thread boundaries :)
>
> Perhaps they traverse threads when messages are sent across the inproc transport?
>
> Wild guess without looking at the code...
Every message travrses a thread boundary. For messages sent through
inproc if follows directly from the definition of inproc. For other
transport, TCP and alike, message traverses between application's thread
and the I/O worker thread inside 0MQ.
Martin
More information about the zeromq-dev
mailing list