]> granicus.if.org Git - libevent/commit
Make event_del(E) block while E is running in another thread.
authorNick Mathewson <nickm@torproject.org>
Tue, 14 Jul 2009 16:54:48 +0000 (16:54 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 14 Jul 2009 16:54:48 +0000 (16:54 +0000)
commit6b4b77a26590f862dff5b490630d2a4b1ea994cd
treec0baad6b4cd5124111f1e903595f7868bbbc4557
parentd866f055857794b8bfad93d93b247b2936a4f7a0
Make event_del(E) block while E is running in another thread.

This gives you the property that once you have called event_del(E),
you know that E is no longer running or pending or active at all, and
so it is safe to delete the resource used by E's callback.

svn:r1341
ChangeLog
event-internal.h
event.c