mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 17:15:09 -04:00
Fix the sleep queue even more
This commit is contained in:
parent
531d0137fd
commit
c663cfc21c
@ -135,6 +135,7 @@ public:
|
||||
// If the queue still contains our pid, it means a wake up
|
||||
// from timeout
|
||||
|
||||
if(!queue.empty()){
|
||||
// If the pid is on top, pop it
|
||||
if(queue.top() == pid){
|
||||
obtained = false;
|
||||
@ -146,6 +147,7 @@ public:
|
||||
obtained = false;
|
||||
queue.replace(pid, scheduler::INVALID_PID);
|
||||
}
|
||||
}
|
||||
|
||||
// Final release of the lock
|
||||
lock.release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user