From d98511c027320d6c425ff11720e87e04e5594626 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Thu, 9 Sep 2010 14:36:45 -0400 Subject: [PATCH] Make event_base_virtual_del() notify the base if needed --- event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.c b/event.c index 720e8aeb..a1cc9c18 100644 --- a/event.c +++ b/event.c @@ -2769,5 +2769,7 @@ event_base_del_virtual(struct event_base *base) EVBASE_ACQUIRE_LOCK(base, th_base_lock); EVUTIL_ASSERT(base->virtual_event_count > 0); base->virtual_event_count--; + if (base->virtual_event_count == 0 && EVBASE_NEED_NOTIFY(base)) + evthread_notify_base(base); EVBASE_RELEASE_LOCK(base, th_base_lock); } -- 2.40.0