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

View File

@ -0,0 +1,35 @@
/*****************************************************************************
* *
* I D L E T H R E A D *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Wird nur aktiviert, wenn kein Thread arbeiten moechte. *
* *
* Autor: Michael, Schoettner, HHU, 13.8.2016 *
*****************************************************************************/
#ifndef __IdleThread_include__
#define __IdleThread_include__
#include "kernel/threads/Thread.h"
#include "kernel/Globals.h"
class IdleThread : public Thread {
private:
IdleThread(const Thread &copy); // Verhindere Kopieren
public:
IdleThread () : Thread () { }
void run () {
while (1) {
scheduler.yield ();
}
}
};
#endif