mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
CComponentsTimer: allow to set a thread name
Origin commit data
------------------
Commit: 6fdd920e42
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)
This commit is contained in:
committed by
vanhofen
parent
30fd1a003c
commit
10f50617ba
@@ -63,6 +63,9 @@ class CComponentsTimer : public sigc::trackable
|
||||
///flag to control thread state
|
||||
bool tm_enable;
|
||||
|
||||
///name for the thread
|
||||
std::string name;
|
||||
|
||||
///mutex for timer
|
||||
OpenThreads::Mutex tm_mutex;
|
||||
///slot for restart signals
|
||||
@@ -120,6 +123,13 @@ class CComponentsTimer : public sigc::trackable
|
||||
*/
|
||||
void setTimerInterval(const int& interval, bool is_nano = false);
|
||||
|
||||
/**set thread name
|
||||
* @param[in] thread name
|
||||
* @return
|
||||
* void
|
||||
*/
|
||||
void setThreadName(const std::string& n) { name = n; };
|
||||
|
||||
/**Provides a signal handler to receive any function or methode.
|
||||
* Use this in your class where ever you need time controled actions.
|
||||
*
|
||||
|
Reference in New Issue
Block a user