#include <Timer_Queue.h>
Inheritance diagram for TAO_Notify_Timer_Queue:
Public Types | |
typedef TAO_Notify_Refcountable_Guard_T< TAO_Notify_Timer_Queue > | Ptr |
Public Member Functions | |
TAO_Notify_Timer_Queue (void) | |
Constuctor. | |
virtual | ~TAO_Notify_Timer_Queue () |
Destructor. | |
virtual long | schedule_timer (ACE_Event_Handler *handler, const ACE_Time_Value &delay_time, const ACE_Time_Value &interval) |
Schedule a timer. | |
virtual int | cancel_timer (long timer_id) |
Cancel Timer. | |
ACE_Timer_Queue & | impl (void) |
Get the native impl. | |
Protected Attributes | |
ACE_Timer_Heap | timer_queue_ |
The Timer Queue. | |
Private Member Functions | |
virtual void | release (void) |
Release. |
Definition at line 35 of file Timer_Queue.h.
|
Reimplemented from TAO_Notify_Timer. Definition at line 38 of file Timer_Queue.h. |
|
Constuctor.
Definition at line 9 of file Timer_Queue.cpp.
00010 { 00011 } |
|
Destructor.
Definition at line 13 of file Timer_Queue.cpp.
00014 { 00015 } |
|
Cancel Timer.
Implements TAO_Notify_Timer. Definition at line 37 of file Timer_Queue.cpp.
00038 { 00039 return this->timer_queue_.cancel (timer_id); 00040 } |
|
Get the native impl.
Definition at line 43 of file Timer_Queue.cpp.
00044 { 00045 return this->timer_queue_; 00046 } |
|
Release.
Implements TAO_Notify_Refcountable. Definition at line 18 of file Timer_Queue.cpp.
00019 { 00020 delete this; 00021 //@@ inform factory 00022 } |
|
Schedule a timer.
Implements TAO_Notify_Timer. Definition at line 25 of file Timer_Queue.cpp.
00028 { 00029 return 00030 this->timer_queue_.schedule (handler, 00031 0, 00032 timer_queue_.gettimeofday () + delay_time, 00033 interval); 00034 } |
|
The Timer Queue.
Definition at line 60 of file Timer_Queue.h. |