summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue_Adapters.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Timer_Queue_Adapters.i')
-rw-r--r--ace/Timer_Queue_Adapters.i24
1 files changed, 24 insertions, 0 deletions
diff --git a/ace/Timer_Queue_Adapters.i b/ace/Timer_Queue_Adapters.i
new file mode 100644
index 00000000000..bc2cceecc25
--- /dev/null
+++ b/ace/Timer_Queue_Adapters.i
@@ -0,0 +1,24 @@
+// $Id$
+
+/* -*- C++ -*- */
+
+template<class TQ> ACE_INLINE
+ACE_Thread_Timer_Queue_Adapter<TQ>::ACE_Thread_Timer_Queue_Adapter (void)
+ : ACE_Task_Base (ACE_Thread_Manager::instance ()),
+ condition_ (lock_)
+{
+ // Assume that we start in active mode.
+ active_ = 1;
+}
+
+template<class TQ> ACE_INLINE ACE_SYNCH_MUTEX &
+ACE_Thread_Timer_Queue_Adapter<TQ>::lock (void)
+{
+ return lock_;
+}
+
+template<class TQ> ACE_INLINE TQ &
+ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void)
+{
+ return timer_queue_;
+}