1

adapt to scheduler rework

This commit is contained in:
2022-07-21 20:36:12 +02:00
parent 2ac36cda83
commit 017f7de650
13 changed files with 59 additions and 53 deletions

View File

@ -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;

View File

@ -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 *