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.i18
1 files changed, 17 insertions, 1 deletions
diff --git a/ace/Timer_Queue_Adapters.i b/ace/Timer_Queue_Adapters.i
index 621c9c08ef8..b8c4c13840d 100644
--- a/ace/Timer_Queue_Adapters.i
+++ b/ace/Timer_Queue_Adapters.i
@@ -4,11 +4,27 @@
template<class TQ> ACE_INLINE TQ &
ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void)
{
+ return *(this->timer_queue_);
+}
+
+template<class TQ> ACE_INLINE TQ *
+ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void) const
+{
return this->timer_queue_;
}
+template<class TQ> ACE_INLINE int
+ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (TQ *tq)
+{
+ if (this->delete_timer_queue_ != 0)
+ delete this->timer_queue_;
+ this->timer_queue_ = tq;
+ this->delete_timer_queue_ = 0;
+ return 0;
+}
+
template<class TQ> ACE_INLINE ACE_thread_t
-ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void)
+ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void) const
{
return this->thr_id_;
}