On Tue, May 19, 2009 at 10:39:15PM -0300, Rodrigo Campos <[email protected]> 
wrote:
> I am needing a way to look into the pendig events of a loop (in my case, the
> default loop), or certain types of watchers (ev_timer, for example).
> 
> If I'm not wrong, there is no function to do that right now, but could it be

sure there is: ev_is_pending will tell you whether a watcher is pending
(loops don't have events themselves, they are always per-watcher). just apply
it to each watcher you want to test for pendingness.

> added to the wishlist ? :) Or its not provided on purpose because there is
> something fundametally wrong with that ?

Well, it's there for a long time already...

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to