diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-10-08 04:11:52 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-10-08 04:11:52 +0000 |
commit | 616866dcfe2c413d58e93ec276f8dc5746132220 (patch) | |
tree | c53ca4ecefaf78372378841e380e99f48155a5d8 | |
parent | ed58ad08852815f9496eac829392b62a9d9f9810 (diff) | |
download | ATCD-616866dcfe2c413d58e93ec276f8dc5746132220.tar.gz |
.
-rw-r--r-- | ace/Timer_Heap_T.cpp | 6 | ||||
-rw-r--r-- | ace/Timer_Queue_T.h | 18 |
2 files changed, 15 insertions, 9 deletions
diff --git a/ace/Timer_Heap_T.cpp b/ace/Timer_Heap_T.cpp index 96e5d7928d9..031b40c1b28 100644 --- a/ace/Timer_Heap_T.cpp +++ b/ace/Timer_Heap_T.cpp @@ -560,8 +560,8 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::schedule (const TYPE &type, template <class TYPE, class FUNCTOR, class ACE_LOCK> int ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::cancel (long timer_id, - const void **act, - int dont_call) + const void **act, + int dont_call) { ACE_TRACE ("ACE_Timer_Heap::cancel"); ACE_MT (ACE_GUARD_RETURN (ACE_LOCK, ace_mon, this->mutex_, -1)); @@ -602,7 +602,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::cancel (long timer_id, template <class TYPE, class FUNCTOR, class ACE_LOCK> int ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::cancel (const TYPE &type, - int dont_call) + int dont_call) { ACE_TRACE ("ACE_Timer_Heap::cancel"); ACE_MT (ACE_GUARD_RETURN (ACE_LOCK, ace_mon, this->mutex_, -1)); diff --git a/ace/Timer_Queue_T.h b/ace/Timer_Queue_T.h index 48dfdceec44..d0e481b4d29 100644 --- a/ace/Timer_Queue_T.h +++ b/ace/Timer_Queue_T.h @@ -203,9 +203,10 @@ public: virtual int cancel (const TYPE &type, int dont_call_handle_close = 1) = 0; - // Cancel all timer associated with <type>. If <dont_call> is 0 - // then the <functor> will be invoked. Returns number of timers - // cancelled. + // Cancel all timer associated with <type>. If + // <dont_call_handle_close> is 0 then the <functor> will be invoked, + // which typically invokes the <handle_close> hook. Returns number + // of timers cancelled. virtual int cancel (long timer_id, const void **act = 0, @@ -214,9 +215,10 @@ public: // was returned from the <schedule> method). If act is non-NULL // then it will be set to point to the ``magic cookie'' argument // passed in when the timer was registered. This makes it possible - // to free up the memory and avoid memory leaks. If <dont_call> is - // 0 then the <functor> will be invoked. Returns 1 if cancellation - // succeeded and 0 if the <timer_id> wasn't found. + // to free up the memory and avoid memory leaks. If + // <dont_call_handle_close> is 0 then the <functor> will be invoked, + // which typically calls the <handle_close> hook. Returns 1 if + // cancellation succeeded and 0 if the <timer_id> wasn't found. virtual int expire (const ACE_Time_Value ¤t_time); // Run the <functor> for all timers whose values are <= <cur_time>. @@ -337,8 +339,12 @@ public: ACE_LOCK> TIMER_QUEUE; + // = Initialization and termination methods. ACE_Event_Handler_Handle_Timeout_Upcall (void); + // Constructor. + ~ACE_Event_Handler_Handle_Timeout_Upcall (void); + // Destructor. int timeout (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, |