[zeromq-dev] Issue 85 & 92

Pieter Hintjens ph at imatix.com
Sat Oct 16 13:58:05 CEST 2010


On Sat, Oct 16, 2010 at 1:49 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Socket doesn't know what OS thread it belongs to.
>
> However, it assumes it belongs to specific "0MQ thread". What's specific
> about 0MQ thread is that it can be migrated between OS threads. Each 0MQ
> thread has a "signaler" object. When you want to send a message to specific
> 0MQ thread, you use the signaler object to do so. The signal will
> automagically arrive in the correct OS thread.

So the sender thread can presumably detect that it's sending a message
to itself?  It has the same signaler object as the thread it's sending
to.  So it doesn't need to send a message, and doesn't need to wait
for a reply (which can provably never arrive).

-Pieter



More information about the zeromq-dev mailing list