AceSmartSoft API Documentation
|
#include <smartComponent.hh>
Public Member Functions | |
ShutdownTimer (SmartComponent *comp) | |
virtual | ~ShutdownTimer () |
void | start (const Smart::Duration &timeout=std::chrono::seconds(2)) |
void | stop () |
virtual void | timerExpired (const Smart::TimePoint &abs_time, const void *act) override |
![]() | |
TimerHandler () | |
virtual | ~TimerHandler () |
virtual void | timerCancelled () override |
This method is called when the timer is cancelled. More... | |
virtual void | timerDeleted (const void *act) override |
This method is called when the timer queue is destroyed and the timer is still contained in it. More... | |
This class implements a watchdog timer, which kills the component (given in the constructor) after a timeout. This helps to stop a component, even if the tasks of this component do not cooperate to shut-down and thus must be force-killed.
SmartACE::ShutdownTimer::ShutdownTimer | ( | SmartComponent * | comp | ) |
|
inlinevirtual |
void SmartACE::ShutdownTimer::start | ( | const Smart::Duration & | timeout = std::chrono::seconds(2) | ) |
void SmartACE::ShutdownTimer::stop | ( | ) |
|
overridevirtual |