38using TaskMap = std::multimap<std::chrono::microseconds, Task *>;
62 explicit Task(
const QString &debugName);
67 virtual QString
Name () = 0;
87 bool m_bTermRequested {
false};
106 static void Shutdown();
110 void RequestTerminate ( );
113 void AddTask ( std::chrono::milliseconds msec ,
Task *pTask );
114 void AddTask (
Task *pTask );
116 Task *GetNextExpiredTask ( std::chrono::microseconds tt, std::chrono::milliseconds nWithinMilliSecs = 50ms );
119 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