adapt to scheduler rework
This commit is contained in:
@ -30,7 +30,7 @@ public:
|
||||
void run() override {
|
||||
// Idle-Thread läuft, ab jetzt ist der Scheduler fertig initialisiert
|
||||
log << INFO << "IdleThread enabled preemption" << endl;
|
||||
scheduler.enable_preemption();
|
||||
scheduler.enable_preemption(this->tid);
|
||||
|
||||
while (true) {
|
||||
// kout << "Idle!" << endl;
|
||||
|
||||
@ -31,7 +31,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
Logger Thread::log = Logger("Thread");
|
||||
unsigned int ThreadCnt = 0;
|
||||
unsigned int ThreadCnt = 1; // Skip tid 0 as the scheduler indicates no preemption with 0
|
||||
|
||||
/*****************************************************************************
|
||||
* Prozedur: Coroutine_init *
|
||||
|
||||
Reference in New Issue
Block a user