summaryrefslogtreecommitdiff
path: root/ace/WFMO_Reactor.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/WFMO_Reactor.h')
-rw-r--r--ace/WFMO_Reactor.h33
1 files changed, 21 insertions, 12 deletions
diff --git a/ace/WFMO_Reactor.h b/ace/WFMO_Reactor.h
index 4cbb941312e..e73e54e0121 100644
--- a/ace/WFMO_Reactor.h
+++ b/ace/WFMO_Reactor.h
@@ -766,18 +766,27 @@ public:
const ACE_Time_Value &delta,
const ACE_Time_Value &interval = ACE_Time_Value::zero);
// Schedule an <event_handler> that will expire after <delay> amount
- // of time. If it expires then <arg> is passed in as the value to
- // the <event_handler>'s <handle_timeout> callback method. If
- // <interval> is != to <ACE_Time_Value::zero> then it is used to
- // reschedule the <event_handler> automatically. This method
- // returns a <timer_id> that uniquely identifies the <event_handler>
- // in an internal list. This <timer_id> can be used to cancel an
- // <event_handler> before it expires. The cancellation ensures that
- // <timer_ids> are unique up to values of greater than 2 billion
- // timers. As long as timers don't stay around longer than this
- // there should be no problems with accidentally deleting the wrong
- // timer. Returns -1 on failure (which is guaranteed never to be a
- // valid <timer_id>.
+ // of time, which is specified using relative time to the current
+ // <gettimeofday>. If it expires then <arg> is passed in as the
+ // value to the <event_handler>'s <handle_timeout> callback method.
+ // If <interval> is != to <ACE_Time_Value::zero> then it is used to
+ // reschedule the <event_handler> automatically, which is also
+ // specified using relative time. This method returns a <timer_id>
+ // that uniquely identifies the <event_handler> in an internal list.
+ // This <timer_id> can be used to cancel an <event_handler> before
+ // it expires. The cancellation ensures that <timer_ids> are unique
+ // up to values of greater than 2 billion timers. As long as timers
+ // don't stay around longer than this there should be no problems
+ // with accidentally deleting the wrong timer. Returns -1 on
+ // failure (which is guaranteed never to be a valid <timer_id>.
+
+ virtual int reset_timer_interval (const long timer_id,
+ const ACE_Time_Value &interval);
+ // Resets the interval of the timer represented by <timer_id> to
+ // <interval>, which is specified in relative time to the current
+ // <gettimeofday>. If <interval> is equal to
+ // <ACE_Time_Value::zero>, the timer will become a non-rescheduling
+ // timer. Returns 0 if successful, -1 if not.
virtual int cancel_timer (ACE_Event_Handler *event_handler,
int dont_call_handle_close = 1);