TAO_Notify_Timer_Queue Class Reference

ACE_Timer_Queue based timer. More...

#include <Timer_Queue.h>

Inheritance diagram for TAO_Notify_Timer_Queue:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Timer_Queue:

Collaboration graph
[legend]
List of all members.

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_Queueimpl (void)
 Get the native impl.


Protected Attributes

ACE_Timer_Heap timer_queue_
 The Timer Queue.


Private Member Functions

virtual void release (void)
 Release.


Detailed Description

ACE_Timer_Queue based timer.

Definition at line 35 of file Timer_Queue.h.


Member Typedef Documentation

typedef TAO_Notify_Refcountable_Guard_T< TAO_Notify_Timer_Queue > TAO_Notify_Timer_Queue::Ptr
 

Reimplemented from TAO_Notify_Timer.

Definition at line 38 of file Timer_Queue.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue void   ) 
 

Constuctor.

Definition at line 9 of file Timer_Queue.cpp.

00010 {
00011 }

TAO_Notify_Timer_Queue::~TAO_Notify_Timer_Queue  )  [virtual]
 

Destructor.

Definition at line 13 of file Timer_Queue.cpp.

00014 {
00015 }


Member Function Documentation

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.

00038 {
00039   return this->timer_queue_.cancel (timer_id);
00040 }

ACE_Timer_Queue & TAO_Notify_Timer_Queue::impl void   ) 
 

Get the native impl.

Definition at line 43 of file Timer_Queue.cpp.

00044 {
00045   return this->timer_queue_;
00046 }

void TAO_Notify_Timer_Queue::release void   )  [private, virtual]
 

Release.

Implements TAO_Notify_Refcountable.

Definition at line 18 of file Timer_Queue.cpp.

00019 {
00020   delete this;
00021   //@@ inform factory
00022 }

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.

00028 {
00029   return
00030     this->timer_queue_.schedule (handler,
00031                                  0,
00032                                  timer_queue_.gettimeofday () + delay_time,
00033                                  interval);
00034 }


Member Data Documentation

ACE_Timer_Heap TAO_Notify_Timer_Queue::timer_queue_ [protected]
 

The Timer Queue.

Definition at line 60 of file Timer_Queue.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:33:36 2006 for TAO_CosNotification by doxygen 1.3.6