1

fix semaphore spinlock bug

This commit is contained in:
2022-07-11 15:37:26 +02:00
parent 52ad3fc752
commit 66b3b914d0
2 changed files with 9 additions and 6 deletions

View File

@ -182,6 +182,7 @@ void Scheduler::block() {
cpu.disable_int();
Thread& next = *(Thread*)this->readyQueue.dequeue();
// Current thread is not added to readyQueue, gets managed by semaphore
this->dispatch(next);
}