double stop loops and watchers

Marc Lehmann schmorp at
Mon Oct 20 18:09:10 CEST 2008

On Mon, Oct 20, 2008 at 01:42:13PM +0400, Kandalintsev Alexandre <exe at> wrote:
> Is it safe to call ev_*_stop on stopped watcher? As I understood it's safe.


> Is it safe to call ev_unloop on stopped loop? I didn't find any suggestions
> in docs.

There is no such thing as a stopped loop - if you mean calling ev_unloop from
outside ev_loop, yes, that's allowed (and has no effect).

> BTW, I think your method to detect the kernel version<2.6.25 is correct  
> I didn't find any points where linux kernel exports version except 
> "struct utsname".

Thanks :) It's disgusting to have to parse the version string :/

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list