00001
00002
00003
00004 template<class TQ> ACE_INLINE TQ &
00005 ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void)
00006 {
00007 return *(this->timer_queue_);
00008 }
00009
00010 template<class TQ> ACE_INLINE TQ *
00011 ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void) const
00012 {
00013 return this->timer_queue_;
00014 }
00015
00016 template<class TQ> ACE_INLINE int
00017 ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (TQ *tq)
00018 {
00019 if (this->delete_timer_queue_ != 0)
00020 delete this->timer_queue_;
00021 this->timer_queue_ = tq;
00022 this->delete_timer_queue_ = 0;
00023 return 0;
00024 }
00025
00026 template<class TQ> ACE_INLINE ACE_thread_t
00027 ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void) const
00028 {
00029 return this->thr_id_;
00030 }
00031
00032 template<class TQ> ACE_INLINE int
00033 ACE_Thread_Timer_Queue_Adapter<TQ>::activate (long flags,
00034 int n_threads,
00035 int force_active,
00036 long priority,
00037 int grp_id,
00038 ACE_Task_Base *task,
00039 ACE_hthread_t thread_handles[],
00040 void *stack[],
00041 size_t stack_size[],
00042 ACE_thread_t thread_names[])
00043 {
00044
00045 ACE_UNUSED_ARG (n_threads);
00046 ACE_UNUSED_ARG (force_active);
00047 ACE_UNUSED_ARG (thread_handles);
00048
00049
00050
00051 return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0,
00052 stack, stack_size, thread_names);
00053 }