00001 // -*- C++ -*- 00002 // 00003 // $Id: Timer_Queue_Adapters.inl 89482 2010-03-15 07:58:50Z johnnyw $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template<class TQ, class TYPE> ACE_INLINE TQ * 00008 ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::timer_queue (void) const 00009 { 00010 return this->timer_queue_; 00011 } 00012 00013 template<class TQ, class TYPE> ACE_INLINE int 00014 ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::timer_queue (TQ *tq) 00015 { 00016 if (this->delete_timer_queue_) 00017 delete this->timer_queue_; 00018 this->timer_queue_ = tq; 00019 this->delete_timer_queue_ = false; 00020 return 0; 00021 } 00022 00023 template<class TQ, class TYPE> ACE_INLINE ACE_thread_t 00024 ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::thr_id (void) const 00025 { 00026 return this->thr_id_; 00027 } 00028 00029 ACE_END_VERSIONED_NAMESPACE_DECL