◆ StdCppPeriodicTimer()
| StdCppOSWrapper::StdCppPeriodicTimer::StdCppPeriodicTimer |
( |
OSWrapper::Runnable * |
r, |
|
|
unsigned long |
periodInMillis, |
|
|
const char * |
name |
|
) |
| |
|
inline |
◆ ~StdCppPeriodicTimer()
| StdCppOSWrapper::StdCppPeriodicTimer::~StdCppPeriodicTimer |
( |
| ) |
|
|
inline |
◆ beginThread()
| void StdCppOSWrapper::StdCppPeriodicTimer::beginThread |
( |
| ) |
|
|
inline |
◆ endThread()
| void StdCppOSWrapper::StdCppPeriodicTimer::endThread |
( |
| ) |
|
|
inline |
◆ getName()
| const char * StdCppOSWrapper::StdCppPeriodicTimer::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getPeriodInMillis()
| unsigned long StdCppOSWrapper::StdCppPeriodicTimer::getPeriodInMillis |
( |
| ) |
const |
|
inlinevirtual |
◆ isStarted()
| bool StdCppOSWrapper::StdCppPeriodicTimer::isStarted |
( |
| ) |
const |
|
inlinevirtual |
Return true if the timer is started.
- Return values
-
| true | The timer is already started |
| false | The timer is already stopped |
Implements OSWrapper::PeriodicTimer.
◆ setName()
| void StdCppOSWrapper::StdCppPeriodicTimer::setName |
( |
const char * |
name | ) |
|
|
inlinevirtual |
◆ start()
| void StdCppOSWrapper::StdCppPeriodicTimer::start |
( |
| ) |
|
|
inlinevirtual |
Start the timer.
When the timer period elapses, the timer calls Runnable::run() specified at create(). The timer calls the Runnable::run() per period.
- Note
- If the timer is already started, do nothing.
-
If the timer is stopped, you can start() again.
Implements OSWrapper::PeriodicTimer.
◆ stop()
| void StdCppOSWrapper::StdCppPeriodicTimer::stop |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: