00001 // Timer_Queue.cpp,v 1.11 2006/03/14 06:14:34 jtc Exp 00002 00003 #include "orbsvcs/Notify/Timer_Queue.h" 00004 00005 ACE_RCSID (Notify, TAO_Notify_Timer_Queue, "Timer_Queue.cpp,v 1.11 2006/03/14 06:14:34 jtc Exp") 00006 00007 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue (void) 00010 { 00011 } 00012 00013 TAO_Notify_Timer_Queue::~TAO_Notify_Timer_Queue () 00014 { 00015 } 00016 00017 void 00018 TAO_Notify_Timer_Queue::release (void) 00019 { 00020 delete this; 00021 //@@ inform factory 00022 } 00023 00024 long 00025 TAO_Notify_Timer_Queue::schedule_timer (ACE_Event_Handler *handler, 00026 const ACE_Time_Value &delay_time, 00027 const ACE_Time_Value &interval) 00028 { 00029 return 00030 this->timer_queue_.schedule (handler, 00031 0, 00032 timer_queue_.gettimeofday () + delay_time, 00033 interval); 00034 } 00035 00036 int 00037 TAO_Notify_Timer_Queue::cancel_timer (long timer_id) 00038 { 00039 return this->timer_queue_.cancel (timer_id); 00040 } 00041 00042 ACE_Timer_Queue& 00043 TAO_Notify_Timer_Queue::impl (void) 00044 { 00045 return this->timer_queue_; 00046 } 00047 00048 TAO_END_VERSIONED_NAMESPACE_DECL