Re: [Libevent-users] questions about bufferevent callbacks in multithreaded code

2013-05-01 Thread Nick Mathewson
On Wed, May 1, 2013 at 12:07 PM, Sashan Govender wrote: > Hi > > I need to clarify my understanding of how bufferevent objects work with > mulithreaded code. If a bufferevent triggers a callback (read or write) does > it hold a lock until that callback completes? Ordinarily, yes. You can override

[Libevent-users] questions about bufferevent callbacks in multithreaded code

2013-05-01 Thread Sashan Govender
Hi I need to clarify my understanding of how bufferevent objects work with mulithreaded code. If a bufferevent triggers a callback (read or write) does it hold a lock until that callback completes? Do the locks use a recursive mutex? Thanks