mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
scheduler: handle interruptions in sched_yield() when sleeping as to prevent lost wakeup
This commit is contained in:
@@ -44,6 +44,7 @@ typedef struct thread_t {
|
||||
bool sleepintstatus;
|
||||
spinlock_t sleeplock;
|
||||
int wakeupreason;
|
||||
bool shouldexit;
|
||||
} thread_t;
|
||||
|
||||
typedef struct proc_t {
|
||||
|
||||
Reference in New Issue
Block a user