proc: fix event loop while waiting

This commit is contained in:
Matheus
2026-06-30 18:43:56 -03:00
parent 7c19244208
commit 6a9fee0b41
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;