#include <MonitoringThread.h>
|
void | start (double _idleTime, const std::function< void(void)> &_idleCallback) |
| Main function user has to run to start monitoring thread. More...
|
|
void | updateIdle () |
|
void | registerCallbackFunction (callbackFunction_t _handler, const std::chrono::seconds &_interval) |
|
◆ instance()
Return singleton instance.
◆ registerCallbackFunction()
void dds::CMonitoringThread::registerCallbackFunction |
( |
callbackFunction_t |
_handler, |
|
|
const std::chrono::seconds & |
_interval |
|
) |
| |
|
inline |
◆ start()
void dds::CMonitoringThread::start |
( |
double |
_idleTime, |
|
|
const std::function< void(void)> & |
_idleCallback |
|
) |
| |
|
inline |
Main function user has to run to start monitoring thread.
- Parameters
-
[in] | _idleTime | Maximum allowed elapsed time since last activity in seconds. |
[in] | _idleCallback | Function which is called after idle is detected. example CMonitoringThread::instance().start(300, [](){ do_something_here() }); |
◆ updateIdle()
void dds::CMonitoringThread::updateIdle |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: