TAO_Notify_Timer_Reactor Class Reference

Reactor::instance based timer. The timers are dispatched by the main thread. More...

#include <Timer_Reactor.h>

Inheritance diagram for TAO_Notify_Timer_Reactor:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Timer_Reactor:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TAO_Notify_Refcountable_Guard_T<
TAO_Notify_Timer_Reactor
Ptr

Public Member Functions

 TAO_Notify_Timer_Reactor (void)
 Constuctor.

virtual ~TAO_Notify_Timer_Reactor ()
 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.


Protected Attributes

ACE_Reactorreactor_
 The instance reactor that we use.


Private Member Functions

virtual void release (void)
 Release.


Detailed Description

Reactor::instance based timer. The timers are dispatched by the main thread.

Definition at line 34 of file Timer_Reactor.h.


Member Typedef Documentation

typedef TAO_Notify_Refcountable_Guard_T< TAO_Notify_Timer_Reactor > TAO_Notify_Timer_Reactor::Ptr
 

Reimplemented from TAO_Notify_Timer.

Definition at line 37 of file Timer_Reactor.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor void   ) 
 

Constuctor.

Definition at line 16 of file Timer_Reactor.cpp.

References TAO_Singleton< TYPE, ACE_LOCK >::instance().

00017   :reactor_ (0)
00018 {
00019   // Get the ORB
00020   CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb ();
00021 
00022   this->reactor_ =  orb->orb_core ()->reactor ();
00023 }

TAO_Notify_Timer_Reactor::~TAO_Notify_Timer_Reactor  )  [virtual]
 

Destructor.

Definition at line 25 of file Timer_Reactor.cpp.

00026 {
00027 }


Member Function Documentation

int TAO_Notify_Timer_Reactor::cancel_timer long  timer_id  )  [virtual]
 

Cancel Timer.

Implements TAO_Notify_Timer.

Definition at line 45 of file Timer_Reactor.cpp.

References ACE_Reactor::cancel_timer().

00046 {
00047   return this->reactor_->cancel_timer (timer_id);
00048 }

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

Release.

Implements TAO_Notify_Refcountable.

Definition at line 30 of file Timer_Reactor.cpp.

00031 {
00032   delete this;
00033   //@@ inform factory
00034 }

long TAO_Notify_Timer_Reactor::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 37 of file Timer_Reactor.cpp.

References ACE_Reactor::schedule_timer().

00040 {
00041   return this->reactor_->schedule_timer (handler, 0, delay_time, interval);
00042 }


Member Data Documentation

ACE_Reactor* TAO_Notify_Timer_Reactor::reactor_ [protected]
 

The instance reactor that we use.

Definition at line 56 of file Timer_Reactor.h.


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