1

add vorgabe06

This commit is contained in:
2022-06-02 13:01:43 +02:00
parent 7b7b375c8c
commit 32b1f2391f
15 changed files with 525 additions and 0 deletions

29
c_os/user/LoopThread.h Executable file
View File

@ -0,0 +1,29 @@
/*****************************************************************************
* *
* L O O P T H R E A D *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Demo eines Threads. Schleife die Zahlen ausgibt. *
*****************************************************************************/
#ifndef __loopthread_include__
#define __loopthread_include__
#include "kernel/threads/Thread.h"
class LoopThread : public Thread {
private:
int id;
LoopThread (const LoopThread &copy); // Verhindere Kopieren
public:
// Gibt der Loop einen Stack und eine Id.
LoopThread (int i) : Thread () { id = i; }
// Zaehlt einen Zaehler hoch und gibt ihn auf dem Bildschirm aus.
void run ();
};
#endif