Fix the sleep queue even more

This commit is contained in:
Baptiste Wicht 2016-08-18 22:00:56 +02:00
parent 531d0137fd
commit c663cfc21c

View File

@ -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();