[Libevent-users] thread-safety
Niels Provos
provos at citi.umich.edu
Mon Mar 3 11:50:27 EST 2008
On Mon, Mar 3, 2008 at 6:15 AM, Yakov Lerner <iler.ml at gmail.com> wrote:
> What is thread-safety of libevent ? Specifically, is it OK
> if I run libevent mainloop in one thread, and register new
> events in other thread ?
The 1.4 branch supports an event base for each thread. Trunk has
support for providing user specific locking primitives so that other
threads can add or remove events from an event base owned by a
different thread.
Niels.
More information about the Libevent-users
mailing list