empty loop, adding watchers, one minute idle

Brandon Black blblack at gmail.com
Sun Mar 25 16:38:34 CEST 2012


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.



More information about the libev mailing list