libevent
claims to be thread-safe, but I'm wondering if that means we don't need to run bufferevent_write
protected by mutexes.
I'd like to run the function bufferevent_write
of libevent
in several different threads and they can be executed at the same time.
According to the documentation, bufferevent_write
function adds data to a bufferevent
’s output buffer, so it needs to protect the buffer, but I don't know whether it is already protected by a mutex or if I have to protect it manually?