[zeromq-dev] Issue 85 & 92
Pieter Hintjens
ph at imatix.com
Sun Oct 17 08:16:10 CEST 2010
On Sat, Oct 16, 2010 at 7:25 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Ack. This means putting atomic op on the critical path (zmq_send) resulting
> in grave performance impact.
It requires setting a single bit 'socket terminated' and then checking
this, there is no need for memory barriers, it's atomic by definition.
No thread will ever unset that bit again so there'll be no conflicts.
The terminating thread will be called once in the lifetime of the
application.
How does this create 'grave performance impacts'?
-Pieter
More information about the zeromq-dev
mailing list