adapt to new list interface
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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!
|
||||
|
||||
Reference in New Issue
Block a user