From 367187492835b4f709d17962af0dff632b1ce65f Mon Sep 17 00:00:00 2001 From: brunsch Date: Sun, 18 Jan 1998 21:59:11 +0000 Subject: Added pure virtual get_first() method to Timer_Queue_T. Added implementations to Timer_Wheel and Timer_Hash. Timer_Heap and Timer_List already had implementations. --- ace/Timer_Hash_T.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ace/Timer_Hash_T.cpp') diff --git a/ace/Timer_Hash_T.cpp b/ace/Timer_Hash_T.cpp index 01bfca7b90a..2db6451c8e5 100644 --- a/ace/Timer_Hash_T.cpp +++ b/ace/Timer_Hash_T.cpp @@ -434,6 +434,20 @@ ACE_Timer_Hash_T::remove_first (void) } +// Returns the earliest node without removing it + +template ACE_Timer_Node_T * +ACE_Timer_Hash_T::get_first (void) +{ + ACE_TRACE ("ACE_Timer_Hash_T::get_first"); + + if (this->is_empty ()) + return 0; + + return this->table_[this->earliest_position_]->get_first (); +} + + // Dummy version of expire to get rid of warnings in Sun CC 4.2 template int -- cgit v1.2.1