[zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

Apostolis Xekoukoulotakis xekoukou at gmail.com
Thu Dec 27 16:24:07 CET 2012

zloop code seems correct. In some old code of mine, that uses zmq_poll , I
was creating a socket to wake the poll, which doesnt make sense, since I
had also calculated the new timeout before the poll locks the thread.
If i remember correctly, I had similar problems. Maybe it was my mistake,
or maybe the zmq_poll has a problem.

2012/12/27 Pieter Hintjens <ph at imatix.com>

> On Thu, Dec 27, 2012 at 2:53 PM, Andy Ballingall TF
> <ballingall at thefoundry.co.uk> wrote:
> > Note how my timer registration succeeds, but the polling seems to
> > ignore it?
> Then it's because the tickless timer is being miscalculated; it should
> be re-calculated each time you add or remove a timer handler. If not,
> there's a bug.
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Sincerely yours,

     Apostolis Xekoukoulotakis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121227/7252d84f/attachment.htm>

More information about the zeromq-dev mailing list