[zeromq-dev] zloop.c: timer event cannot break out of zloop

Gundry, Samuel (TI) Samuel.Gundry at riotinto.com
Fri Jan 11 08:46:50 CET 2013


Hi,

In zloop, a timer return code "rc" may be overwritten by poller return codes.  "rc" is set at line 372 but is then overwritten at line 414. https://github.com/zeromq/czmq/blob/master/src/zloop.c#L372

I'm not sure of the correct behaviour hence why I haven't submitted a patch. 

Should the pollers be called if a timer returns -1 in the same loop? 
If not, then don't loop over the pollers when "rc != -1"?

Regards,
Sam



More information about the zeromq-dev mailing list