]> granicus.if.org Git - libevent/commit
Move responsibility for IOCP callback into bufferevent_async.
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 20:31:09 +0000 (20:31 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 20:31:09 +0000 (20:31 +0000)
commitd7d1f1da09f32a14ff4c08dc0f1f0e0673ed5afd
treed02c3c5d7a4a50299aeaae5c3b7ea41d7cce6945
parent201d8d0bafeb2ba1388746ed745cd5d8defb3689
Move responsibility for IOCP callback into bufferevent_async.

This patch from Chris Davis saves some callback depth, and adds proper
ref-counting to bufferevents when there's a deferred evbuffer callback
inflight.  It could use a couple more comments to really nail down what
its invariants are.

svn:r1543
buffer.c
buffer_iocp.c
bufferevent.c
bufferevent_async.c
bufferevent_sock.c
evbuffer-internal.h
iocp-internal.h
test/regress_bufferevent.c
test/regress_iocp.c