1
Files
lecture-operating-system-de…/c_os/user/HelloWorldThread.h
2022-06-27 22:50:11 +02:00

30 lines
1.1 KiB
C++

/*****************************************************************************
* *
* H E L L O W O R L D T H R E A D *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Ein einfacher Thread. *
* *
* Autor: Michael Schoettner, HHU, 16.12.2016 *
*****************************************************************************/
#ifndef __hello_world_thread_include__
#define __hello_world_thread_include__
#include "kernel/Globals.h"
#include "kernel/threads/Thread.h"
class HelloWorldThread : public Thread {
private:
HelloWorldThread(const HelloWorldThread& copy) = delete; // Verhindere Kopieren
public:
HelloWorldThread() : Thread() {
kout << "Initialized HelloWorldThread" << endl;
}
// Thread-Startmethode
void run() override;
};
#endif