empty loop, adding watchers, one minute idle

Zoltán Lajos Kis zoltan.lajos.kis at gmail.com
Sun Mar 25 17:01:15 CEST 2012

Thanks Brandon, and Marc: I got it finally. I was mislead by the fact that
the event did occur (only after a while), and so was being suspicious of
locking issues (not blocking issues :o)). Now everything makes perfect
sense. Sorry for the noise.


2012. március 25. 16:38 Brandon Black írta, <blblack at gmail.com>:

> 2012/3/25 Zoltán Lajos Kis <zoltan.lajos.kis at gmail.com>:
> > Even if you lock the mutex before the call to ev_ref and ev_run, the
> outcome
> > is still the same: the one minute delay remains.
> From the docs for ev_set_loop_release_cb:
> While event loop modifications are allowed between invocations of
> release and acquire (that's their only purpose after all), no
> modifications done will affect the event loop, i.e. adding watchers
> will have no effect on the set of file descriptors being watched, or
> the time waited. Use an ev_async watcher to wake up ev_run when you
> want it to take note of any changes you made.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120325/43eebc67/attachment.html>

More information about the libev mailing list