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 majord...@freehaven.net with
unsubscribe libevent-users    in the body.

Reply via email to