Public Types | Public Member Functions | Protected Attributes | Private Member Functions

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)
 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_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

Reimplemented from TAO_Notify_Timer.

Definition at line 38 of file Timer_Queue.h.


Constructor & Destructor Documentation

TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue ( void   ) 

Constructor.

Definition at line 9 of file Timer_Queue.cpp.

{
}

TAO_Notify_Timer_Queue::~TAO_Notify_Timer_Queue ( void   )  [virtual]

Destructor.

Definition at line 13 of file Timer_Queue.cpp.

{
}


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.

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

ACE_Timer_Queue & TAO_Notify_Timer_Queue::impl ( void   ) 

Get the native impl.

Definition at line 43 of file Timer_Queue.cpp.

{
  return this->timer_queue_;
}

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);
}


Member Data Documentation

The Timer Queue.

Definition at line 59 of file Timer_Queue.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines