]> granicus.if.org Git - libevent/commit
Return from event_del() after the last event callback termination
authorJosé Luis Millán <jmillan@aliax.net>
Mon, 13 Apr 2015 06:54:52 +0000 (08:54 +0200)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:13:50 +0000 (15:13 +0300)
commit876c7ac7ff86a4cf9d772d1bf129b59d0a08d80c
treee6a5ab034673230398843133d212cb518c101a3c
parent23db747652a90b49ca699ef64dcbdd1b60447fe3
Return from event_del() after the last event callback termination

Delete the event from the queue before blocking for the current
event callback termination.

Ensures that no callback is being executed when event_del() returns,
hence making this function a secure mechanism to access data which is
handled in the event callack.

Fixes: #236
Fixes: #225
Refs: 6b4b77a
Fixes: del_wait
(cherry picked from commit 0b4b0efdb8ee710ccae5bad320fc24843fd428e5)
event.c