[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] deadlock in libevent-2.0.5-beta
Hi,
On 01.07.2010 12:44, Avi Bab wrote:
Running on Linux with pthreads.
One thread (CBTcpProxyListenerThread below) adds bufferevents (with
option BEV_OPT_THREADSAFE) to an event_base.
A second thread (CBTcpProxySenderThread) dispatches on the event_base.
have you tried creating your bufferevent with BEV_OPT_DEFER_CALLBACKS
and BEV_OPT_UNLOCK_CALLBACKS?
This unlocks the bufferevents while executing the callbacks and should
prevent the deadlock from happening.
Best regards,
Joachim
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.