[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Threaded event bases



On Dec 21, 2010, at 10:44 , Mark Ellzey wrote:
There are other options for consumer/worker pools. Check out
https://strcpy.net/mark/evthreads/ which uses a per-thread base
you can defer functions into threads from your main base.

You can do this with libevent 2.0, using thread-safe event loops, and using event_active() to "trigger" an event to be run in another thread.

This doesn't really address the multi-threading issue though, since it is a fair amount of manual work.

Evan

--
Evan Jones
http://evanjones.ca/

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.