#49 More uniformity in callback/refcounting/threadsafety logic

open
nobody
General (24)
5
2010-12-14
2010-12-14
Nick Mathewson
No

RIght now, every part of libevent that has callbacks handles callbacks and threadsafety a little differently. It would be useful to make the logic more uniform and easily audited, especially considering how hard it has been to get all the permutations correct.

Currently, events, evdns, bufferevents, listeners, and evbuffers all take a slightly different approach, and evhttp doesn't deliver threadsafety at all.

Discussion