diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-03 22:44:29 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-03 22:44:29 +0000 |
commit | 6fdc123c601a3f58942924c639757df366049743 (patch) | |
tree | f259a828748eac9e886983e3f9d3e44f0a0a8d1c /ace/Timer_Heap_T.cpp | |
parent | 440ffb3f2559ea0ea76be0f1502f4d094fb7eeab (diff) | |
download | ATCD-6fdc123c601a3f58942924c639757df366049743.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Timer_Heap_T.cpp')
-rw-r--r-- | ace/Timer_Heap_T.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ace/Timer_Heap_T.cpp b/ace/Timer_Heap_T.cpp index b12d7f753a8..a788295faf8 100644 --- a/ace/Timer_Heap_T.cpp +++ b/ace/Timer_Heap_T.cpp @@ -435,7 +435,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR>::free_node (ACE_Timer_Node_T<TYPE, FUNCTOR> *nod // > 0, the handler will be reinvoked periodically. -template <class TYPE, class FUNCTOR> int +template <class TYPE, class FUNCTOR> long ACE_Timer_Heap_T<TYPE, FUNCTOR>::schedule (const TYPE &type, const void *act, const ACE_Time_Value &future_time, @@ -475,7 +475,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR>::schedule (const TYPE &type, // the timer queue. template <class TYPE, class FUNCTOR> int -ACE_Timer_Heap_T<TYPE, FUNCTOR>::cancel (int timer_id, +ACE_Timer_Heap_T<TYPE, FUNCTOR>::cancel (long timer_id, const void **act, int dont_call) { @@ -484,7 +484,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR>::cancel (int timer_id, // Locate the ACE_Timer_Node that corresponds to the timer_id. - int timer_node_slot = this->timer_ids_[timer_id]; + long timer_node_slot = this->timer_ids_[timer_id]; if (timer_id != this->heap_[timer_node_slot]->timer_id_) { @@ -498,6 +498,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR>::cancel (int timer_id, if (dont_call == 0) // Call the close hook. this->upcall_functor_.operator () (*this, temp->type_); + if (act != 0) *act = temp->act_; |