1

add output to idle thread

This commit is contained in:
churl
2022-06-05 16:51:17 +02:00
parent f229e43c6b
commit 951185bccc

View File

@ -11,25 +11,22 @@
#ifndef __IdleThread_include__
#define __IdleThread_include__
#include "kernel/threads/Thread.h"
#include "kernel/Globals.h"
#include "kernel/threads/Thread.h"
class IdleThread : public Thread {
private:
IdleThread(const Thread &copy); // Verhindere Kopieren
IdleThread(const Thread& copy) = delete; // Verhindere Kopieren
public:
IdleThread () : Thread () { }
void run () {
while (1) {
scheduler.yield ();
IdleThread() {}
void run() override {
while (true) {
scheduler.yield();
kout << "Idle!" << endl;
}
}
};
};
#endif