summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue_T.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-27 04:16:15 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-27 04:16:15 +0000
commitd09dc5b5096e2ae98e297315a0d3aec09c9ae941 (patch)
tree5688a1ece9ebef371af3a7a48d266b015fed4103 /ace/Timer_Queue_T.cpp
parentaf25f9e89a745a56e3787f56bff0badb9bed6d22 (diff)
downloadATCD-d09dc5b5096e2ae98e297315a0d3aec09c9ae941.tar.gz
Added a constructor and changed the other to support doubly linked lists
for ACE_Timer_Node_T.
Diffstat (limited to 'ace/Timer_Queue_T.cpp')
-rw-r--r--ace/Timer_Queue_T.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/ace/Timer_Queue_T.cpp b/ace/Timer_Queue_T.cpp
index da9cce397b5..0a259b2fa53 100644
--- a/ace/Timer_Queue_T.cpp
+++ b/ace/Timer_Queue_T.cpp
@@ -22,6 +22,7 @@ ACE_Timer_Node_T<TYPE, FUNCTOR>::dump (void) const
ACE_DEBUG ((LM_DEBUG, "\nact_ = %x", this->act_));
this->timer_value_.dump ();
this->interval_.dump ();
+ ACE_DEBUG ((LM_DEBUG, "\nprev_ = %x", this->prev_));
ACE_DEBUG ((LM_DEBUG, "\nnext_ = %x", this->next_));
ACE_DEBUG ((LM_DEBUG, "\ntimer_id_ = %d", this->timer_id_));
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
@@ -44,6 +45,7 @@ ACE_Timer_Node_T<TYPE, FUNCTOR>::ACE_Timer_Node_T (const TYPE &type,
act_ (a),
timer_value_ (t),
interval_ (i),
+ prev_ (0),
next_ (n),
timer_id_ (timer_id)
{
@@ -51,6 +53,26 @@ ACE_Timer_Node_T<TYPE, FUNCTOR>::ACE_Timer_Node_T (const TYPE &type,
}
template <class TYPE, class FUNCTOR>
+ACE_Timer_Node_T<TYPE, FUNCTOR>::ACE_Timer_Node_T (const TYPE &type,
+ const void *a,
+ const ACE_Time_Value &t,
+ const ACE_Time_Value &i,
+ ACE_Timer_Node_T<TYPE, FUNCTOR> *p,
+ ACE_Timer_Node_T<TYPE, FUNCTOR> *n,
+ int timer_id)
+ : type_ (type),
+ act_ (a),
+ timer_value_ (t),
+ interval_ (i),
+ prev_ (p),
+ next_ (n),
+ timer_id_ (timer_id)
+{
+ ACE_TRACE ("ACE_Timer_Node::ACE_Timer_Node");
+}
+
+
+template <class TYPE, class FUNCTOR>
ACE_Timer_Queue_Iterator_T<TYPE, FUNCTOR>::ACE_Timer_Queue_Iterator_T (void)
{
}