CComponentsTimer: add slot for auto timer start/stop

Connection with OnBeforeRestart ensures closing threads.
Under certain circumstances, eg. running thread, a restart could fail.


Origin commit data
------------------
Commit: 28ef6e147e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-26 (Fri, 26 Sep 2014)
This commit is contained in:
2014-09-26 16:46:03 +02:00
parent 51724aa8b4
commit b2eb512db1
2 changed files with 9 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ class CComponentsTimer : public sigc::trackable
static void* initTimerThread(void *arg);
///mutex for timer
OpenThreads::Mutex mutex;
///slot for signals
sigc::slot0<bool> sl;
public:
///class constructor, parameter interval sets the interval in seconds, default value=1 (1 sec)