Timeout event resolution

Brandon Black blblack at gmail.com
Thu Jan 26 21:51:19 CET 2012

On Thu, Jan 26, 2012 at 2:33 PM, <menezes at multitel.be> wrote:
> [some code]

The code initially sets "after" to 0.1 and repeat to 0.0, which will
initially fire the callback after 0.1 seconds.  Inside the callback, you're
setting a repeat for 1.0 seconds later via "w->repeat = 1." and
ev_timer_again(), which causes it to continue firing every 1.0 seconds
afterwards.  Check the docs for ev_timer_init(), etc, if that doesn't make

-- Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120126/e8afd963/attachment.html>

More information about the libev mailing list