[Libevent-users] the usage of ev_pncalls in struct event

2010-07-01 Thread xiaobing jiang
hi all:     what's the usage of ev_pncalls in struct event? why not direct use ev_ncalls? two question: 1. in libevent 1.4.14, it seems only used in event_process_active(), but in libeven2 it used in event_signal_closure. why? 2.         ev->ev_pncalls = &ncalls;  // from event_process_active() he

[Libevent-users] deadlock in libevent-2.0.5-beta

2010-07-01 Thread Avi Bab
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. bufferevents are removed from the event_base either by a third thread or by the