diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-06 00:37:20 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-06 00:37:20 +0000 |
commit | e0c13c59fbc07d686a8c16b434b240e5c1ae1116 (patch) | |
tree | b767fe69816602739ed1087e347a2a606e429a30 /ace/Timer_Queue.h | |
parent | 5c47048dcb6e6ddab8406324df204d2b92f72b2a (diff) | |
download | ATCD-e0c13c59fbc07d686a8c16b434b240e5c1ae1116.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Timer_Queue.h')
-rw-r--r-- | ace/Timer_Queue.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ace/Timer_Queue.h b/ace/Timer_Queue.h index 038eb8533c6..cdf0ee9ef9d 100644 --- a/ace/Timer_Queue.h +++ b/ace/Timer_Queue.h @@ -139,18 +139,24 @@ public: // timer. Returns -1 on failure (which is guaranteed never to be a // valid <timer_id>). - virtual int cancel (ACE_Event_Handler *event_handler) = 0; + virtual int cancel (ACE_Event_Handler *event_handler, + int dont_call_handle_close = 1) = 0; // Cancel all <event_handlers> that match the address of - // <event_handler>. Returns number of handler's cancelled. + // <event_handler>. If <dont_call_handle_close> is 0 then the + // <handle_close> method of <event_handler> will be invoked. + // Returns number of handler's cancelled. - virtual int cancel (int timer_id, const void **arg = 0) = 0; + virtual int cancel (int timer_id, + const void **arg = 0, + int dont_call_handle_close = 1) = 0; // Cancel the single <ACE_Event_Handler> that matches the <timer_id> // value (which was returned from the <schedule> method). If arg is // non-NULL then it will be set to point to the ``magic cookie'' // argument passed in when the <Event_Handler> was registered. This // makes it possible to free up the memory and avoid memory leaks. - // Returns 1 if cancellation succeeded and 0 if the <timer_id> - // wasn't found. + // If <dont_call_handle_close> is 0 then the <handle_close> method + // of <event_handler> will be invoked. 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 <handle_timeout> method for all Timers whose values are |