1
Files
lecture-operating-system-de…/c_os/user/demo/HeapDemo.h
2022-07-22 21:39:22 +02:00

34 lines
1.1 KiB
C++
Executable File

/*****************************************************************************
* *
* H E A P D E M O *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Demonstration der dynamischen Speicherverwaltung. *
* *
* Autor: Michael Schoettner, HHU, 25.9.2016 *
*****************************************************************************/
#ifndef __HeapDemo_include__
#define __HeapDemo_include__
#include "kernel/Globals.h"
#include "kernel/threads/Thread.h"
class MyObj {
public:
constexpr MyObj() : value(5) {};
constexpr MyObj(const unsigned int val) : value(val) {};
const unsigned int value;
};
class HeapDemo : public Thread {
private:
HeapDemo(const HeapDemo& copy) = delete;
public:
HeapDemo() : Thread("HeapDemo") {}
void run() override;
};
#endif