scheduler: handle interruptions in sched_yield() when sleeping as to prevent lost wakeup

This commit is contained in:
Matheus
2024-04-14 12:42:43 -03:00
parent f19f784694
commit 55f407da08
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ typedef struct thread_t {
bool sleepintstatus;
spinlock_t sleeplock;
int wakeupreason;
bool shouldexit;
} thread_t;
typedef struct proc_t {