mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
proc: fix event loop while waiting
This commit is contained in:
@@ -196,8 +196,8 @@ void proc_stop_other_threads() {
|
||||
}
|
||||
|
||||
eventlistener_t listener;
|
||||
EVENT_INITLISTENER(&listener);
|
||||
for (;;) {
|
||||
EVENT_INITLISTENER(&listener);
|
||||
EVENT_ATTACH(&listener, &proc->thread_exit_event);
|
||||
if (__atomic_load_n(&proc->runningthreadcount, __ATOMIC_SEQ_CST) == 1)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user