On Mon, Jun 25, 2012 at 12:52:35AM +0200, Marek Denis <[email protected]> wrote:
> different threads is a safe technique. However I am not really sure,
> whrther those calls will trigger callback functions the exact number of
They don't. It works like any other watcher, such as timers or I/O
watchers, it's only invoked as soon as possible.
> however I would like to be able to make a callback like:
The extra emptyness test of your queue ought to be way cheaper than the
atomic counter libev would have to implement.
--
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