mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
CComponentsTimer: add mutex handling, use neutrino log
Origin commit data
------------------
Commit: cfd1510a5c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-12 (Fri, 12 Sep 2014)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user