On Sun, Mar 02, 2014 at 06:39:12PM +0330, Jafar habibi livar
<[email protected]> wrote:
> I should thanks for your quick reply.
> how can I find number of watchers which already registered in loop?
Each time a watcher is started (can be tricky due to ev_again), increase
a counter. Each time one is stopped (can be a bit tricky due to timers
auto-stopping, can be checked for by using ev_is_active in the callback),
decrease a counter.
--
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