1

adapt to new list interface

This commit is contained in:
2022-07-16 18:24:32 +02:00
parent f807558781
commit b454f5d01c
5 changed files with 2 additions and 13 deletions

View File

@ -108,7 +108,7 @@ void Scheduler::kill(Thread* that) {
// Thread-Wechsel durch PIT verhindern
cpu.disable_int();
if (this->ready_queue.remove(that) == -1) {
if (!this->ready_queue.remove(that)) {
log << ERROR << "Can't kill thread that is not in ready_queue, ID: " << dec << that->tid << endl;
cpu.enable_int();
return;

View File

@ -44,10 +44,6 @@ private:
public:
Scheduler() : has_idle_thread(false), log("SCHED") {}
void init() {
this->ready_queue.init();
}
// Scheduler initialisiert?
// Zeitgeber-Unterbrechung kommt evt. bevor der Scheduler fertig
// intiialisiert wurde!