Best way to use async library jobs with the event-loop

Yoran Heling info at yorhel.nl
Tue Apr 1 14:10:24 CEST 2014


On 2014-04-01, Konstantin Olkhovskiy wrote:
> 2014-04-01 15:51 GMT+04:00 utku genç <utkugenc at gmail.com>:
> > libuv has a convenience function for using possible blocking library
> > operations with event-loop paradigm*. What, do you think, is the best way
> > to implement such functionality for libev?
> >
> 
> Probably best way is to use libeio [1]. Complete example of libev
> integration is available in the documentation [2].

Note that libeio isn't suitable as a general purpose thread pool because
it configures a rather small stack for the worker threads. I wrote a
generic thread pool for libev some time ago and dubbed it evtp[1].

http://dev.yorhel.nl/ylib

Yorhel.



More information about the libev mailing list