Re: [Libevent-users] Deadlock when calling bufferevent_free from an other thread

2012-08-09 Thread Adrian Chadd
Hi Nick/Others, The thing to realise is that the current libevent _API_ doesn't lead itself to being thread-safe. This is my motivation behind my original comment of "threading should be left to the API user, not the library." I had the same problem in Squid. The internal APIs don't lead themsel

Re: [Libevent-users] Deadlock when calling bufferevent_free from an other thread

2012-08-09 Thread Nick Mathewson
On Wed, Aug 8, 2012 at 11:43 PM, Dave Hart wrote: > One solution that comes to mind is to add a (for example) > event_del_nowait(), or event_del_nonblocking() which requires the > event in question be allocated dynamically via libevent, and therefore > can safely use the dead list approach of queu