empty loop, adding watchers, one minute idle

Zoltán Lajos Kis zoltan.lajos.kis at gmail.com
Sun Mar 25 16:12:20 CEST 2012


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.


2012. március 25. 15:28 Marc Lehmann írta, <schmorp at schmorp.de>:

> On Sun, Mar 25, 2012 at 11:04:56AM +0200, Zoltán Lajos Kis <
> zoltan.lajos.kis at gmail.com> wrote:
> > Thanks for your response. I believe I have all the needed locking in
> place.
>
> I can't see any locks around ev_run - every function with a loop argument
> needs locking, unless documented specifically to be an exception.
>
> > Is there any other calls / locking I need to use in this latter case to
> > have the event fire right away?
>
> Sure, again, see the documented example in the documentation.
>
> --
>                The choice of a       Deliantra, the free code+content MORPG
>      -----==-     _GNU_              http://www.deliantra.net
>      ----==-- _       generation
>      ---==---(_)__  __ ____  __      Marc Lehmann
>      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
>      -=====/_/_//_/\_,_/ /_/\_\
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120325/b160c346/attachment.html>


More information about the libev mailing list