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

Yoran Heling info at yorhel.nl
Thu Apr 3 09:01:48 CEST 2014


On 2014-04-02, Marc Lehmann wrote:
> > I wrote a generic thread pool for libev some time ago and dubbed it
> > evtp[1].
> 
> Extra points for supporting EV_MULTIPLICITY :)
> 
> A problem is there though: your threadpool has the classical problem of
> inheriting the signal mask, and thus wreaks havoc with signal handling (by
> introducing race conditions with event libs such as libev and by making it
> impossible to block signals).

Aye, you're right. I've included your proposed fix, thanks!

Yorhel.



More information about the libev mailing list