Hello!

Trying to understand how 0mq works I am not sure I properly got how 
multithreading is handled.

For example in yqueue_t::push I can see
==
if (++end_pos != N)
==
though I did not find any attempt to ensure (e.g. by means of memory barriers 
or volatile keyword)
this variable, modified by multiple threads, is somehow protected.

I am almost sure it is misunderstanding from my side, otherwise this link 
http://en.wikipedia.org/wiki/Memory_barrier
would be helpfull.

Please, clarify.

-- 
Best regards,
Ilja Golshtein.
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to