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

Re: [Libevent-users] is libevent2 threadsafe in windows?



On Thu, Mar 31, 2011 at 5:06 AM, èæ <jaxecn@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.