Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Timer_Queue_Adapters.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Timer_Queue_Adapters.i,v 1.1.1.3 2003/02/21 18:36:32 chad Exp $
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   // Macros to avoid "warning: unused parameter" type warning.
00045   ACE_UNUSED_ARG (n_threads);
00046   ACE_UNUSED_ARG (force_active);
00047   ACE_UNUSED_ARG (thread_handles);
00048 
00049   // Make sure that we only allow a single thread to be spawned for
00050   // our adapter.  Otherwise, too many weird things can happen.
00051   return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0,
00052                                   stack, stack_size, thread_names);
00053 }

Generated on Mon Jun 16 11:21:51 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002