diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-20 21:56:03 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-20 21:56:03 +0000 |
commit | a7e5c46967d87ed6399ccabc6d6776ba2c8e0183 (patch) | |
tree | f33d894afc0cd27473a625a9e5a2fcee93ad5eb3 /ace/Timer_Queue_T.cpp | |
parent | f91e422ad02e24c0506394d97a8fe235a89b02e5 (diff) | |
download | ATCD-a7e5c46967d87ed6399ccabc6d6776ba2c8e0183.tar.gz |
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 ().
Diffstat (limited to 'ace/Timer_Queue_T.cpp')
-rw-r--r-- | ace/Timer_Queue_T.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<TYPE, FUNCTOR, ACE_LOCK>::expire (const ACE_Time_Value &cur_ti return number_of_timers_expired; } + +template <class TYPE, class FUNCTOR, class ACE_LOCK> void +ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>::return_node (ACE_Timer_Node_T<TYPE> *node) +{ + ACE_MT (ACE_GUARD (ACE_LOCK, ace_mon, this->mutex_)); + this->free_node (node); +} + + template <class ACE_LOCK> int ACE_Event_Handler_Handle_Timeout_Upcall<ACE_LOCK>::timeout (ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_LOCK>, |