Calling ev_async_send() from multiple threads.
Marc Lehmann
schmorp at schmorp.de
Mon Jun 25 11:34:38 CEST 2012
On Mon, Jun 25, 2012 at 12:52:35AM +0200, Marek Denis <marek at octogan.net> 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
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list