/***************************************************************************** * * * 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/system/Globals.h" #include "kernel/process/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 { public: HeapDemo(const HeapDemo& copy) = delete; HeapDemo() : Thread("HeapDemo") {} void run() override; }; #endif