summaryrefslogtreecommitdiff
path: root/ACE/ace/Timer_Queue_Adapters.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Timer_Queue_Adapters.inl')
-rw-r--r--ACE/ace/Timer_Queue_Adapters.inl29
1 files changed, 29 insertions, 0 deletions
diff --git a/ACE/ace/Timer_Queue_Adapters.inl b/ACE/ace/Timer_Queue_Adapters.inl
new file mode 100644
index 00000000000..16901a15bd6
--- /dev/null
+++ b/ACE/ace/Timer_Queue_Adapters.inl
@@ -0,0 +1,29 @@
+// -*- C++ -*-
+//
+// $Id$
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+template<class TQ, class TYPE> ACE_INLINE TQ *
+ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::timer_queue (void) const
+{
+ return this->timer_queue_;
+}
+
+template<class TQ, class TYPE> ACE_INLINE int
+ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::timer_queue (TQ *tq)
+{
+ if (this->delete_timer_queue_)
+ delete this->timer_queue_;
+ this->timer_queue_ = tq;
+ this->delete_timer_queue_ = false;
+ return 0;
+}
+
+template<class TQ, class TYPE> ACE_INLINE ACE_thread_t
+ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::thr_id (void) const
+{
+ return this->thr_id_;
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL