From 52e0509c7d5c297be5f180ab1bb6591aa2cc3f47 Mon Sep 17 00:00:00 2001 From: brunsch Date: Tue, 20 Jan 1998 21:56:03 +0000 Subject: Added a return_node () method which is used to return a ACE_Timer_Node back into the control of the Timer Queue after it leaves via remove_first (). --- ace/Timer_Queue_T.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ace/Timer_Queue_T.cpp') diff --git a/ace/Timer_Queue_T.cpp b/ace/Timer_Queue_T.cpp index bd337f47364..5336baec605 100644 --- a/ace/Timer_Queue_T.cpp +++ b/ace/Timer_Queue_T.cpp @@ -241,6 +241,15 @@ ACE_Timer_Queue_T::expire (const ACE_Time_Value &cur_ti return number_of_timers_expired; } + +template void +ACE_Timer_Queue_T::return_node (ACE_Timer_Node_T *node) +{ + ACE_MT (ACE_GUARD (ACE_LOCK, ace_mon, this->mutex_)); + this->free_node (node); +} + + template int ACE_Event_Handler_Handle_Timeout_Upcall::timeout (ACE_Timer_Queue_T, -- cgit v1.2.1