summaryrefslogtreecommitdiff
path: root/ace/Timer_Wheel_T.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-18 21:59:11 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-18 21:59:11 +0000
commit367187492835b4f709d17962af0dff632b1ce65f (patch)
tree5ae951cd59471c77378c51c13787592714426693 /ace/Timer_Wheel_T.cpp
parent90ba20ad4c88453745b74e03bf466e8357be7b80 (diff)
downloadATCD-367187492835b4f709d17962af0dff632b1ce65f.tar.gz
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.
Diffstat (limited to 'ace/Timer_Wheel_T.cpp')
-rw-r--r--ace/Timer_Wheel_T.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/ace/Timer_Wheel_T.cpp b/ace/Timer_Wheel_T.cpp
index 10d2d9c061b..099660e3e09 100644
--- a/ace/Timer_Wheel_T.cpp
+++ b/ace/Timer_Wheel_T.cpp
@@ -450,6 +450,17 @@ ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK>::remove_first (void)
}
+// Returns the earliest node without removing it
+
+template <class TYPE, class FUNCTOR, class ACE_LOCK> ACE_Timer_Node_T<TYPE> *
+ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK>::get_first (void)
+{
+ ACE_TRACE ("ACE_Timer_Wheel_T::get_first");
+
+ return this->wheel_[this->earliest_pos_]->get_next ();
+}
+
+
// Takes an ACE_Timer_Node and inserts it into the correct position in the correct
// list