add output to idle thread
This commit is contained in:
@ -11,25 +11,22 @@
|
|||||||
#ifndef __IdleThread_include__
|
#ifndef __IdleThread_include__
|
||||||
#define __IdleThread_include__
|
#define __IdleThread_include__
|
||||||
|
|
||||||
|
|
||||||
#include "kernel/threads/Thread.h"
|
|
||||||
#include "kernel/Globals.h"
|
#include "kernel/Globals.h"
|
||||||
|
#include "kernel/threads/Thread.h"
|
||||||
|
|
||||||
class IdleThread : public Thread {
|
class IdleThread : public Thread {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IdleThread(const Thread ©); // Verhindere Kopieren
|
IdleThread(const Thread& copy) = delete; // Verhindere Kopieren
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IdleThread () : Thread () { }
|
IdleThread() {}
|
||||||
|
|
||||||
void run () {
|
void run() override {
|
||||||
while (1) {
|
while (true) {
|
||||||
scheduler.yield ();
|
scheduler.yield();
|
||||||
|
kout << "Idle!" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user