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
|
// If the queue still contains our pid, it means a wake up
|
||||||
// from timeout
|
// from timeout
|
||||||
|
|
||||||
|
if(!queue.empty()){
|
||||||
// If the pid is on top, pop it
|
// If the pid is on top, pop it
|
||||||
if(queue.top() == pid){
|
if(queue.top() == pid){
|
||||||
obtained = false;
|
obtained = false;
|
||||||
@ -146,6 +147,7 @@ public:
|
|||||||
obtained = false;
|
obtained = false;
|
||||||
queue.replace(pid, scheduler::INVALID_PID);
|
queue.replace(pid, scheduler::INVALID_PID);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Final release of the lock
|
// Final release of the lock
|
||||||
lock.release();
|
lock.release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user