summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue_Adapters.i
blob: c7060fd53ba2721d8a4c84658863ad4f33bf21df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* -*- C++ -*- */

// $Id$

template<class TQ> ACE_INLINE TQ &
ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void)
{
  return this->timer_queue_;
}

template<class TQ> ACE_INLINE ACE_thread_t
ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void)
{
  return this->thr_id_;
}

template<class TQ> ACE_INLINE int
ACE_Thread_Timer_Queue_Adapter<TQ>::activate (long flags,
					      int n_threads,
					      int force_active,
					      long priority,
					      int grp_id,
					      ACE_Task_Base *task,
					      ACE_hthread_t thread_handles[])
{
  // Macros to avoid "warning: unused parameter" type warning.
  ACE_UNUSED_ARG (n_threads);
  ACE_UNUSED_ARG (force_active);
  ACE_UNUSED_ARG (thread_handles);

  // Make sure that we only allow a single thread to be spawned for
  // our adapter.  Otherwise, too many weird things can happen.
  return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0);
}