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

31
c_os/user/CoopThreadDemo.h Executable file
View File

@ -0,0 +1,31 @@
/*****************************************************************************
* *
* C O O P E R A T I V E T H R E A D D E M O *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Beispiel für kooperative Threads. *
* *
* Autor: Michael Schoettner, HHU, 21.8.2016 *
*****************************************************************************/
#ifndef __coopthreaddemo_include__
#define __coopthreaddemo_include__
#include "kernel/threads/Thread.h"
class CoopThreadDemo : public Thread {
private:
CoopThreadDemo (const CoopThreadDemo &copy); // Verhindere Kopieren
public:
// Gib dem Anwendungsthread einen Stack.
CoopThreadDemo () : Thread () { }
// Thread-Startmethode
void run ();
};
#endif