#include <yarp/os/Timer.h>
|
| | Timer (const Timer &)=delete |
| |
| Timer | operator= (const Timer &)=delete |
| |
| | Timer (const yarp::os::TimerSettings &settings, const TimerCallback &callback, bool newThread, std::mutex *mutex=nullptr) |
| | Timer constructor.
|
| |
| template<class T > |
| | Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &), T *object, bool newThread, std::mutex *mutex=nullptr) |
| | Timer constructor.
|
| |
| template<class T > |
| | Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &) const, const T *object, bool newThread, std::mutex *mutex=nullptr) |
| | const version.
|
| |
| virtual | ~Timer () |
| |
| void | setSettings (const yarp::os::TimerSettings &settings) |
| | setSettings
|
| |
| const yarp::os::TimerSettings | getSettings () |
| | getSettings
|
| |
| virtual bool | start () |
| |
| virtual bool | step () |
| |
| virtual void | stop () |
| |
| virtual bool | isRunning () |
| |
Definition at line 96 of file Timer.h.
◆ TimerCallback
◆ Timer() [1/4]
◆ Timer() [2/4]
Timer constructor.
- Parameters
-
| settings | the timer settings. see TimerSettings documentation |
| callback | the pointer to the function to call. the signature should be "bool foo(const yarp::os::YarpTimerEvent&)" and if it return false the timer will stop |
| mutex | if not nullptr will be locked before calling callback and released just after |
| newThread | whether the timer should be executed in a dedicated thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
Definition at line 272 of file Timer.cpp.
◆ Timer() [3/4]
Timer constructor.
- Parameters
-
| settings | the timer settings. see TimerSettings documentation |
| callback | the pointer to the member method to call |
| object | the pointer to the object |
| mutex | if not nullptr will be locked before calling callback and released just after |
| newThread | whether the timer should be executed in a his own thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
Definition at line 132 of file Timer.h.
◆ Timer() [4/4]
const version.
Definition at line 146 of file Timer.h.
◆ ~Timer()
◆ getSettings()
getSettings
- Returns
- the current settings
Definition at line 354 of file Timer.cpp.
◆ isRunning()
| bool Timer::isRunning |
( |
| ) |
|
|
virtual |
◆ operator=()
◆ setSettings()
setSettings
- Parameters
-
Definition at line 349 of file Timer.cpp.
◆ start()
◆ step()
◆ stop()
The documentation for this class was generated from the following files: