add vorgabe06
This commit is contained in:
29
c_os/user/LoopThread.h
Executable file
29
c_os/user/LoopThread.h
Executable 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 ©); // 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
|
||||
Reference in New Issue
Block a user