#include <new_sim_timer_thread.h>
Inheritance diagram for NewSimulatorTimerThread:
Public Member Functions | |
NewSimulatorTimerThread (unsigned int ms_timeout) | |
Constructor for Watchdogs. | |
virtual | ~NewSimulatorTimerThread () |
Destructor. | |
void | Stop () |
Set the exit flag and sleep THREAD_SLEEPTIME to be sure it is read. | |
unsigned int | Reset (unsigned int new_timeout) |
Set a new timeout value. | |
Public Attributes | |
bool | m_exit |
signal thread to exit | |
Protected Member Functions | |
virtual void * | Run () |
Main loop of the timer. | |
virtual bool | TriggerAction ()=0 |
Abstract method which is called after the timre expires. | |
Protected Attributes | |
bool | m_running |
Flag if a thread is already running. |
|
Set a new timeout value.
|
|
Main loop of the timer. If the timer expires the method TriggerAction() is called. Implements cThread. |