1

implement loop demo

This commit is contained in:
churl
2022-06-15 21:31:29 +02:00
parent a3aa13d946
commit 1a5c701546
4 changed files with 49 additions and 23 deletions

View File

@ -12,18 +12,18 @@
#include "kernel/threads/Thread.h"
class LoopThread : public Thread {
private:
int id;
LoopThread (const LoopThread &copy); // Verhindere Kopieren
LoopThread(const LoopThread& copy) = delete; // Verhindere Kopieren
public:
// Gibt der Loop einen Stack und eine Id.
LoopThread (int i) : Thread () { id = i; }
LoopThread(int i) : id(i) {}
// Zaehlt einen Zaehler hoch und gibt ihn auf dem Bildschirm aus.
void run ();
void run() override;
};
#endif