Correctly notify the main thread when activating an event from a subthread

This commit is contained in:
Nick Mathewson 2010-12-01 21:28:03 -05:00
parent 2599b2d5f5
commit 5beeec9d43

View File

@ -2240,6 +2240,9 @@ event_active_nolock(struct event *ev, int res, short ncalls)
}
event_queue_insert(base, ev, EVLIST_ACTIVE);
if (EVBASE_NEED_NOTIFY(base))
evthread_notify_base(base);
}
void