[eio] where do the callbacks come from?
Marc Lehmann
schmorp at schmorp.de
Sun Aug 31 11:18:09 CEST 2008
On Sat, Aug 30, 2008 at 01:09:54PM +0200, ryan dahl <ry at ndahl.us> wrote:
> Are the eio_cb callbacks made during eio_poll() or from the worker threads?
Always from eio_poll, i.e. always synchronous to whatever thread calls
eio_poll.
It should also be permissible to call eio_poll concurrently from multiple
threads, as eio_poll properly locks the result queue for each request,
although nobody has tested that so far :)
(it is even permissible to recurse into eio_poll from a callback, this ahs
been tested).
--
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