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

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)
 Constructor.
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

Reimplemented from TAO_Notify_Timer.

Definition at line 37 of file Timer_Reactor.h.


Constructor & Destructor Documentation

TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor ( void   ) 

Constructor.

Definition at line 16 of file Timer_Reactor.cpp.

  :reactor_ (0)
{
  // Get the ORB
  CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb ();

  this->reactor_ =  orb->orb_core ()->reactor ();
}

TAO_Notify_Timer_Reactor::~TAO_Notify_Timer_Reactor (  )  [virtual]

Destructor.

Definition at line 25 of file Timer_Reactor.cpp.

{
}


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.

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

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

Release.

Implements TAO_Notify_Refcountable.

Definition at line 30 of file Timer_Reactor.cpp.

{
  delete this;
  //@@ inform factory
}

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.

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


Member Data Documentation

The instance reactor that we use.

Definition at line 55 of file Timer_Reactor.h.


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