CComponentsTimer: add mutex handling, use neutrino log

This commit is contained in:
2014-09-12 17:03:15 +02:00
committed by [CST] Focus
parent 88ce62ea84
commit cfd1510a5c
2 changed files with 15 additions and 8 deletions

View File

@@ -30,6 +30,9 @@
#endif
#include <sigc++/signal.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
//! Member of CComponents. Provides a generic timer class
/*!
@@ -45,6 +48,8 @@ class CComponentsTimer : public sigc::trackable
int tm_interval;
///init function to start timer in own thread
static void* initTimerThread(void *arg);
///mutex for timer
OpenThreads::Mutex mutex;
public:
///class constructor, parameter interval sets the interval in seconds, default value=1 (1 sec)