Public Member Functions | |
MonoThreadTimer (const TimerSettings &sett, const TimerCallback &call, yarp::os::Mutex *mutex) | |
MonoThreadTimer (const TimerSettings &sett, const TimerCallback &call, std::mutex *mutex=nullptr) | |
~MonoThreadTimer () override | |
virtual yarp::os::YarpTimerEvent | getEventNow () |
bool | startTimer () override |
void | stopTimer () override |
bool | stepTimer () override |
virtual bool | step (YarpTimerEvent event, bool singleStep) |
bool | timerIsRunning () override |
Public Member Functions inherited from yarp::os::Timer::PrivateImpl | |
PrivateImpl (const TimerSettings &sett, TimerCallback call, yarp::os::Mutex *mutex) | |
PrivateImpl (const TimerSettings &sett, TimerCallback call, std::mutex *mutex=nullptr) | |
virtual | ~PrivateImpl ()=default |
Public Attributes | |
bool | m_active {false} |
unsigned int | m_runTimes {1} |
size_t | m_id {(size_t)-1} |
Public Attributes inherited from yarp::os::Timer::PrivateImpl | |
TimerSettings | m_settings |
TimerCallback | m_callback |
double | m_startStamp {0.0} |
double | m_lastReal {0.0} |
std::mutex * | m_mutex {nullptr} |
yarp::os::Mutex * | m_old_mutex {nullptr} |
Additional Inherited Members | |
Public Types inherited from yarp::os::Timer::PrivateImpl | |
using | TimerCallback = yarp::os::Timer::TimerCallback |
Protected Member Functions inherited from yarp::os::Timer::PrivateImpl | |
yarp::os::YarpTimerEvent | getEventNow (unsigned int iteration) |
bool | runTimer (unsigned int iteration, YarpTimerEvent event) |
MonoThreadTimer::MonoThreadTimer | ( | const TimerSettings & | sett, |
const TimerCallback & | call, | ||
yarp::os::Mutex * | mutex | ||
) |
MonoThreadTimer::MonoThreadTimer | ( | const TimerSettings & | sett, |
const TimerCallback & | call, | ||
std::mutex * | mutex = nullptr |
||
) |
|
inlinevirtual |
|
inlineoverridevirtual |
Implements yarp::os::Timer::PrivateImpl.
|
inlinevirtual |
|
inlineoverridevirtual |
Implements yarp::os::Timer::PrivateImpl.
|
inlineoverridevirtual |
Implements yarp::os::Timer::PrivateImpl.
|
inlineoverridevirtual |
Implements yarp::os::Timer::PrivateImpl.