37using TaskMap = std::multimap<std::chrono::microseconds, Task *>;
61 explicit Task(
const QString &debugName);
66 virtual QString
Name () = 0;
86 bool m_bTermRequested {
false};
105 static void Shutdown();
109 void RequestTerminate ( );
112 void AddTask ( std::chrono::milliseconds msec ,
Task *pTask );
113 void AddTask (
Task *pTask );
115 Task *GetNextExpiredTask ( std::chrono::microseconds tt, std::chrono::milliseconds nWithinMilliSecs = 50ms );
118 void AddTaskAbsolute ( std::chrono::microseconds tt,
Task *pTask );
This is a wrapper around QThread that does several additional things.
virtual void run(void)
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
General purpose reference counter.
static TaskQueue * g_pTaskQueue
virtual void Execute(TaskQueue *pQueue)=0
Task(const QString &debugName)
std::multimap< std::chrono::microseconds, Task * > TaskMap