00001 // -*- C++ -*- 00002 // 00003 // $Id: Timer_Queue_Adapters.inl 80826 2008-03-04 14:51:23Z wotte $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template<class TQ> ACE_INLINE TQ * 00008 ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void) const 00009 { 00010 return this->timer_queue_; 00011 } 00012 00013 template<class TQ> ACE_INLINE int 00014 ACE_Thread_Timer_Queue_Adapter<TQ>::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> ACE_INLINE ACE_thread_t 00024 ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void) const 00025 { 00026 return this->thr_id_; 00027 } 00028 00029 ACE_END_VERSIONED_NAMESPACE_DECL