diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/TaskMan.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/TaskMan.h b/includes/TaskMan.h index 6c446b7..68aaaf6 100644 --- a/includes/TaskMan.h +++ b/includes/TaskMan.h @@ -47,6 +47,11 @@ class TaskMan { r->threadStart(); return r; } + static void stopThreadedTaskMan(TaskManThread * tmt) { + tmt->stopMe(0); + tmt->join(); + delete tmt; + } bool stopped() { return m_stopped; } template<class T> static T * createTask(T * t, Task * stick = NULL) { TaskMan::registerTask(t, stick); return t; } |