1

update for new list interface

This commit is contained in:
2022-07-17 21:02:33 +02:00
parent d09b862dc3
commit 132eb13431
5 changed files with 33 additions and 33 deletions

View File

@ -11,7 +11,7 @@ void Semaphore::p() {
this->lock.release();
} else {
// Block and manage thread in semaphore queue until it's woken up by v() again
this->waitQueue.insert(scheduler.get_active());
this->waitQueue.insert_last(scheduler.get_active());
this->lock.release();
scheduler.block(); // Moves to next thread
}