disable scheduler interrupt pausing, no preemption
This commit is contained in:
@ -116,7 +116,7 @@ void Scheduler::yield() {
|
|||||||
/* hier muss Code eingefuegt werden */
|
/* hier muss Code eingefuegt werden */
|
||||||
|
|
||||||
// Thread-Wechsel durch PIT verhindern
|
// Thread-Wechsel durch PIT verhindern
|
||||||
cpu.disable_int ();
|
// cpu.disable_int ();
|
||||||
|
|
||||||
// When only one thread exists (IdleThread) it can't yield as the readyqueue becomes empty
|
// When only one thread exists (IdleThread) it can't yield as the readyqueue becomes empty
|
||||||
// and this is not handled anywhere else
|
// and this is not handled anywhere else
|
||||||
@ -130,7 +130,7 @@ void Scheduler::yield() {
|
|||||||
this->dispatch(next);
|
this->dispatch(next);
|
||||||
|
|
||||||
// Thread-Wechsel durch PIT jetzt wieder erlauben
|
// Thread-Wechsel durch PIT jetzt wieder erlauben
|
||||||
cpu.enable_int ();
|
// cpu.enable_int ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user