waitpid: use event instead of busy loop when waiting for threads to die

This commit is contained in:
Matheus
2026-04-16 22:41:43 -03:00
parent 4e3c41df39
commit 3dfb6b5a8c
4 changed files with 27 additions and 6 deletions
+1
View File
@@ -36,6 +36,7 @@ typedef struct proc_t {
cred_t cred;
spinlock_t threadlistlock;
thread_t *threadlist;
eventheader_t thread_exit_event;
bool nomorethreads;
size_t runningthreadcount;
size_t fdcount;