On Thu, Mar 31, 2011 at 5:06 AM, 蒋浩 <jax...@gmail.com> wrote: > As captioned,in libevent2, for example,event_add or event_dispatch and so > on,are they thread safe?can I use them safe in different threads ?
Yes. There are some caveats, though. Most notably, you must explicitly enable threading support before you create the first event_base, by calling (on windows) the function evthread_use_windows_threads(). -- Nick *********************************************************************** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-users in the body.