summaryrefslogtreecommitdiff
path: root/ace/Timer_Hash_T.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-09 15:00:11 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-09 15:00:11 +0000
commitc73657f8b2567d1cd34436ce133fd2849615c7c1 (patch)
tree7d60d106335a128d009ec548876563e9edf96084 /ace/Timer_Hash_T.cpp
parent780bd9eedea9ca0e82c08912aa6c4ebb60433407 (diff)
downloadATCD-c73657f8b2567d1cd34436ce133fd2849615c7c1.tar.gz
Bug fixes for Timer_Hash
Diffstat (limited to 'ace/Timer_Hash_T.cpp')
-rw-r--r--ace/Timer_Hash_T.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/ace/Timer_Hash_T.cpp b/ace/Timer_Hash_T.cpp
index ea078497f58..a376ffd0f0f 100644
--- a/ace/Timer_Hash_T.cpp
+++ b/ace/Timer_Hash_T.cpp
@@ -205,8 +205,6 @@ ACE_Timer_Hash_T<TYPE, FUNCTOR, LOCK, BUCKET>::ACE_Timer_Hash_T (size_t table_si
this->table_[i] = new BUCKET (&this->table_functor_, this->free_list_);
this->table_[i]->gettimeofday (ACE_High_Res_Timer::gettimeofday);
}
-
- this->table_functor_;
}
@@ -230,8 +228,6 @@ ACE_Timer_Hash_T<TYPE, FUNCTOR, LOCK, BUCKET>::ACE_Timer_Hash_T (FUNCTOR *upcall
this->table_[i] = new BUCKET (&this->table_functor_, this->free_list_);
this->table_[i]->gettimeofday (ACE_High_Res_Timer::gettimeofday);
}
-
- this->table_functor_;
}
@@ -385,7 +381,8 @@ ACE_Timer_Hash_T<TYPE, FUNCTOR, LOCK, BUCKET>::cancel (const TYPE &type,
{
ACE_Timer_Queue_Iterator_T<TYPE, ACE_Timer_Hash_Upcall<TYPE, FUNCTOR, LOCK>, ACE_Null_Mutex> &iter = this->table_[i]->iter ();
for (iter.first (); !iter.isdone (); iter.next ())
- timer_ids[pos++] = (Hash_Token *)iter.item ()->get_act ();
+ if (iter.item ()->get_type () == type)
+ timer_ids[pos++] = (Hash_Token *)iter.item ()->get_act ();
}
ACE_ASSERT (pos <= this->size_);