Reactor::instance based timer. The timers are dispatched by the main thread. More...
#include <Timer_Reactor.h>
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_Reactor * | reactor_ |
The instance reactor that we use. | |
Private Member Functions | |
virtual void | release (void) |
Release. |
Reactor::instance based timer. The timers are dispatched by the main thread.
Definition at line 34 of file Timer_Reactor.h.
Reimplemented from TAO_Notify_Timer.
Definition at line 37 of file Timer_Reactor.h.
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] |
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); }
ACE_Reactor* TAO_Notify_Timer_Reactor::reactor_ [protected] |
The instance reactor that we use.
Definition at line 55 of file Timer_Reactor.h.