mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CComponentsTimer: add slot for auto timer start/stop
Connection with OnBeforeRestart ensures closing threads. Under certain circumstances, eg. running thread, a restart could fail.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user