preliminary ev_async implementation
Marc Lehmann
schmorp at schmorp.de
Fri Feb 1 16:46:05 CET 2008
the libev cvs contains a preliminary ev_async implementation, it would be
nice if interested parties could give it a look and try.
it is documented here:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#code_ev_async_code_how_to_wake_up_an
basically, it works like an inter-loop signal, that is, no queueing, no data.
we thought long about possibly implementing some lock-free
single-reader/single-writer queue, but I couldn't come up with any good
one, and providing single-reader/multiple-writers is out of the question
it seems.
the manpage provides (untested :) examples on how to do queueing in
signal- and thread-contexts.
feedback (and api changes) are still posssible.
--
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