signals: signal_wait

This commit is contained in:
Matheus
2024-09-08 15:41:54 -03:00
parent b6806c6065
commit 909ef74597
4 changed files with 161 additions and 4 deletions
+1
View File
@@ -166,6 +166,7 @@ thread_t *sched_newthread(void *ip, size_t kstacksize, int priority, proc_t *pro
CTX_IP(&thread->context) = (ctxreg_t)ip;
SPINLOCK_INIT(thread->sleeplock);
SPINLOCK_INIT(thread->signals.lock);
EVENT_INITHEADER(&thread->signals.waitpendingevent);
return thread;
}