summaryrefslogtreecommitdiff
path: root/ace/Timer_List_T.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-20 17:29:33 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-20 17:29:33 +0000
commit4a78a70adc3cc4bb36c32d9f9d20c8f5515078a9 (patch)
tree3e6f16f1ef3900c0e63b6c65468346212aa29cee /ace/Timer_List_T.cpp
parent85748639bbf3180b09872febdb783cfa2f41d812 (diff)
downloadATCD-4a78a70adc3cc4bb36c32d9f9d20c8f5515078a9.tar.gz
added Timer_{Heap,List}::get_first accessors
Diffstat (limited to 'ace/Timer_List_T.cpp')
-rw-r--r--ace/Timer_List_T.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/Timer_List_T.cpp b/ace/Timer_List_T.cpp
index e64e13ee4e2..94ad0679d9e 100644
--- a/ace/Timer_List_T.cpp
+++ b/ace/Timer_List_T.cpp
@@ -275,6 +275,15 @@ ACE_Timer_List_T<TYPE, FUNCTOR, ACE_LOCK>::cancel (const TYPE &type,
return number_of_cancellations;
}
+// Reads the first node on the list and returns it.
+
+template <class TYPE, class FUNCTOR, class LOCK> ACE_Timer_Node_T<TYPE> *
+ACE_Timer_List_T<TYPE, FUNCTOR, LOCK>::get_first (void)
+{
+ ACE_TRACE ("ACE_Timer_List_T::get_first");
+
+ return this->head_->get_next ();
+}
// Removes the first node on the list and returns it.