#include <source/ariba/utility/transport/tcpip/protlib/timer_module.h>
Inherits protlib::Thread, and protlib::TimerCallback.
Classes | |
class | TimerMap |
timer map More... | |
Public Member Functions | |
virtual void | timer_expired (timer_id_t timer, timer_callback_param_t callback_param) |
callback member function | |
TimerModule (const TimerModuleParam &p) | |
constructor | |
virtual | ~TimerModule () |
destructor | |
virtual void | main_loop (uint32 nr) |
timer module main loop | |
Private Member Functions | |
void | process_queue () |
wait for incoming messages | |
void | process_elapsed_timers () |
check timers and send messages | |
bool | start_timer (TimerMsg *m) |
start a timer | |
bool | restart_timer (TimerMsg *m) |
restart a timer | |
bool | stop_timer (TimerMsg *m) |
stop a timer | |
bool | stop_all_timers () |
stop all timers | |
void | send_error_or_dispose (TimerMsg *m, bool ok) |
send back error | |
Private Attributes | |
TimerManager | tm |
timer module parameters | |
const TimerModuleParam | timerparam |
module parameters | |
class protlib::TimerModule::TimerMap | tmap |
timer map |
This is the timer module.
Definition at line 198 of file timer_module.h.
const TimerModuleParam protlib::TimerModule::timerparam [private] |
module parameters
Definition at line 232 of file timer_module.h.
Referenced by main_loop(), process_elapsed_timers(), process_queue(), restart_timer(), send_error_or_dispose(), start_timer(), stop_all_timers(), stop_timer(), timer_expired(), TimerModule(), and ~TimerModule().
TimerManager protlib::TimerModule::tm [private] |
timer module parameters
Definition at line 230 of file timer_module.h.
Referenced by process_elapsed_timers(), restart_timer(), start_timer(), stop_all_timers(), and stop_timer().
class protlib::TimerModule::TimerMap protlib::TimerModule::tmap [private] |
timer map
This stores timer IDs and the corresponding message IDs.
Referenced by restart_timer(), start_timer(), stop_all_timers(), stop_timer(), timer_expired(), and TimerModule().