[zeromq-dev] missing events ZMQ_FD / ZMQ_EVENTS

Paul Colomiets paul at colomiets.name
Mon May 14 21:15:47 CEST 2012


Hi Gerhard,

On Mon, May 14, 2012 at 7:49 PM, Gerhard Lipp <gelipp at googlemail.com> wrote:
> thanks for the diagram! I would like to locate the variables cntA  /
> cntB in source to understand what is going on (and why). Could you
> please point me in the right direction?
>

Look at src/signaller.cpp. When it's on linux, and eventfd is
supported, the real counter
is inside that eventfd. In other implementations the counter is number
of bytes that
are currently in pipe's buffer. In any case it's value is read inside
signaler_t::recv.

-- 
Paul



More information about the zeromq-dev mailing list