RE: [Libevent-users] Thread safety with Evbuffers and Bufferevents

2010-06-22 Thread Avi Bab
Thanks! -Original Message- From: owner-libevent-us...@freehaven.net [mailto:owner-libevent-us...@freehaven.net] On Behalf Of Nick Mathewson Sent: Monday, June 21, 2010 9:29 PM To: libevent-us...@freehaven.net Subject: Re: [Libevent-users] Thread safety with Evbuffers and Bufferevents

Re: [Libevent-users] Thread safety with Evbuffers and Bufferevents

2010-06-21 Thread Nick Mathewson
On Sun, Jun 20, 2010 at 5:51 AM, Avi Bab wrote: > Hello all, > > > > I’d like to use a socket based bufferevent to perform asynchronous writing > to the underlying socket: > > One thread, X, adds data to the output  evbuffer (either by > evbuffer_reserve_space+ evbuffer_commit_space or by evbuffer

[Libevent-users] Thread safety with Evbuffers and Bufferevents

2010-06-20 Thread Avi Bab
Hello all, I'd like to use a socket based bufferevent to perform asynchronous writing to the underlying socket: One thread, X, adds data to the output evbuffer (either by evbuffer_reserve_space+ evbuffer_commit_space or by evbuffer_add_reference) and another thread, Y, dispatches on the buffer