A way to know the pending events of a loop
Marc Lehmann
schmorp at schmorp.de
Wed May 20 16:51:17 CEST 2009
On Tue, May 19, 2009 at 10:39:15PM -0300, Rodrigo Campos <rodrigo at sdfg.com.ar> 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
--==---/ / _ \/ // /\ \/ / pcg at goof.com
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list