ACE_Timer_Queue based timer. More...
#include <Timer_Queue.h>
Public Types | |
typedef TAO_Notify_Refcountable_Guard_T < TAO_Notify_Timer_Queue > | Ptr |
Public Member Functions | |
TAO_Notify_Timer_Queue (void) | |
Constructor. | |
virtual | ~TAO_Notify_Timer_Queue (void) |
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. |
ACE_Timer_Queue based timer.
Definition at line 35 of file Timer_Queue.h.
Reimplemented from TAO_Notify_Timer.
Definition at line 38 of file Timer_Queue.h.
TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue | ( | void | ) |
TAO_Notify_Timer_Queue::~TAO_Notify_Timer_Queue | ( | void | ) | [virtual] |
int TAO_Notify_Timer_Queue::cancel_timer | ( | long | timer_id | ) | [virtual] |
Cancel Timer.
Implements TAO_Notify_Timer.
Definition at line 37 of file Timer_Queue.cpp.
{ return this->timer_queue_.cancel (timer_id); }
ACE_Timer_Queue & TAO_Notify_Timer_Queue::impl | ( | void | ) |
void TAO_Notify_Timer_Queue::release | ( | void | ) | [private, virtual] |
Release.
Implements TAO_Notify_Refcountable.
Definition at line 18 of file Timer_Queue.cpp.
{ delete this; //@@ inform factory }
long TAO_Notify_Timer_Queue::schedule_timer | ( | ACE_Event_Handler * | handler, | |
const ACE_Time_Value & | delay_time, | |||
const ACE_Time_Value & | interval | |||
) | [virtual] |
Schedule a timer.
Implements TAO_Notify_Timer.
Definition at line 25 of file Timer_Queue.cpp.
{ return this->timer_queue_.schedule (handler, 0, timer_queue_.gettimeofday () + delay_time, interval); }
ACE_Timer_Heap TAO_Notify_Timer_Queue::timer_queue_ [protected] |
The Timer Queue.
Definition at line 59 of file Timer_Queue.h.