Re: [Libevent-users] lock question

2010-07-29 Thread Nick Mathewson
On Thu, Jul 29, 2010 at 4:23 AM, Avi Bab wrote: > > > Does writing to an output evbuffer (specifocally I use > evbuffer_add_reference) of a bufferevent attempt to acquire the event_base’s > lock? Usually not. It does acquire the bufferevent's lock. It *might* have to tell the bufferevent to sta

[Libevent-users] lock question

2010-07-29 Thread Avi Bab
Does writing to an output evbuffer (specifocally I use evbuffer_add_reference) of a bufferevent attempt to acquire the event_base's lock? I.e., if thread A calls evbuffer_add_reference(bufferevent_get_output(bev), data, data_len, cleanupfn, extra) - will it block while thread B that dispatches