123456789101112131415161718192021 |
- #include "ActionThread.h"
- // Inhalt der ActionThread Klasse
- // Konstruktor
- ActionThread::ActionThread( std::function<void()> ak )
- {
- action = ak;
- start();
- }
- // Führt die Threadaktion aus
- void ActionThread::thread()
- {
- action();
- }
- // Wird am ende des Threads ausgeführt
- void ActionThread::threadEnd()
- {
- delete this;
- }
|