empty loop, adding watchers, one minute idle

Marc Lehmann schmorp at schmorp.de
Sun Mar 25 15:28:41 CEST 2012

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
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list