Timer_Reactor.cpp

Go to the documentation of this file.
00001 // $Id: Timer_Reactor.cpp 71526 2006-03-14 06:14:35Z jtc $
00002 
00003 #include "orbsvcs/Notify/Timer_Reactor.h"
00004 
00005 ACE_RCSID (Notify,
00006        Timer_Reactor,
00007        "$Id: Timer_Reactor.cpp 71526 2006-03-14 06:14:35Z jtc $")
00008 
00009 #include "orbsvcs/Notify/Properties.h"
00010 #include "tao/ORB_Core.h"
00011 #include "ace/Reactor.h"
00012 
00013 
00014 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00015 
00016 TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor (void)
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 }
00024 
00025 TAO_Notify_Timer_Reactor::~TAO_Notify_Timer_Reactor ()
00026 {
00027 }
00028 
00029 void
00030 TAO_Notify_Timer_Reactor::release (void)
00031 {
00032   delete this;
00033   //@@ inform factory
00034 }
00035 
00036 long
00037 TAO_Notify_Timer_Reactor::schedule_timer (ACE_Event_Handler *handler,
00038                                const ACE_Time_Value &delay_time,
00039                                const ACE_Time_Value &interval)
00040 {
00041   return this->reactor_->schedule_timer (handler, 0, delay_time, interval);
00042 }
00043 
00044 int
00045 TAO_Notify_Timer_Reactor::cancel_timer (long timer_id)
00046 {
00047   return this->reactor_->cancel_timer (timer_id);
00048 }
00049 
00050 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:45:29 2010 for TAO_CosNotification by  doxygen 1.4.7