Re: [Libevent-users] Event callback from evbuffer_add_printf

2013-04-09 Thread Nick Mathewson
On Wed, Apr 3, 2013 at 4:26 AM, Sebastian Sjöberg wrote: > Hello, > > Is it possible that evbuffer_add_printf triggers an event callback on a > bufferevent before returning? Yes. When deferred callbacks aren't enabled on an event, then it's possible that when you queue data, that data can be fl

[Libevent-users] RFC: strategy for deadlock avoidance and safe finalization in Libevent 2.1

2013-04-09 Thread Nick Mathewson
Libevent 2.1.x may introduce an optional new "finalize" model to avoid some delays and deadlocks in multithreaded applications. Here I'll discuss why the solution is necessary, how it works, and how to use it. The APIs are not yet set in stone; anything could change. Feedback wo