[zeromq-dev] Is blocking zmq_poll handovered by the libzmq I/O thread ?

Laurent Alebarde l.alebarde at free.fr
Fri Feb 14 10:37:14 CET 2014


Hi Devs,

I wonder what is the internal behaviour of libzmq when a blocking 
zmq_poll is used ws thread activation:

int rc = zmq_poll (items, 2, -1);

Does the libzmq internal I/O thread awake the user's thread only when 
the poll has received an event ? Or are the user's thread that blocks on 
a poll awaken cyclically to make their own check ? Let's ask it an other 
way: does zmq_poll delegates its own polling to the libzmq I/O thread ?

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140214/04549908/attachment.htm>


More information about the zeromq-dev mailing list