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

@ -10,22 +10,22 @@
#ifndef __coopthreaddemo_include__
#define __coopthreaddemo_include__
#include "kernel/Globals.h"
#include "kernel/threads/Thread.h"
class CoopThreadDemo : public Thread {
private:
CoopThreadDemo (const CoopThreadDemo &copy); // Verhindere Kopieren
CoopThreadDemo(const CoopThreadDemo& copy) = delete; // Verhindere Kopieren
public:
// Gib dem Anwendungsthread einen Stack.
CoopThreadDemo () : Thread () { }
CoopThreadDemo() {
kout << "Initialized CoopThreadDemo" << endl;
}
// Thread-Startmethode
void run ();
};
void run() override;
};
#endif