Skip to content

Commit 96b5524

Browse files
committed
event: add another termination checkpoint
1 parent 6068c5e commit 96b5524

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/event.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ static void *ev_enqwork(void *param)
404404
char temp_string[256];
405405

406406
NEXT_LOOP:
407+
if (g_notify_stop)
408+
return nullptr;
407409
std::unique_lock cm_hold(g_enqueue_cond_mutex);
408410
g_enqueue_waken_cond.wait(cm_hold);
409411
cm_hold.unlock();

0 commit comments

Comments
 (0)