By looking at the source code of libevent
it seems the mutexes are not included.
bufferevent_write
calls evbuffer_add
. I found the source code of this function here: http://transmission.sourcearchive.com/documentation/1.75/event_8h_b652a2f82d23509713258a6e44697164.html#b652a2f82d23509713258a6e44697164
So I think I have to call these two functions:
void evbuffer_lock(struct evbuffer *buf);
void evbuffer_unlock(struct evbuffer *buf);