diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-18 02:02:27 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-18 02:02:27 +0000 |
commit | f593e1cd3d92bd697776af6773e614cd404aeb32 (patch) | |
tree | 1134f3b4450a94e87c9f485fa77213ff8a1b2905 /ace/WFMO_Reactor.i | |
parent | 3e94ae019f94e693db519bfa4fbea86242f2bae6 (diff) | |
download | ATCD-f593e1cd3d92bd697776af6773e614cd404aeb32.tar.gz |
ChangeLogTag:Tue Aug 17 20:02:55 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/WFMO_Reactor.i')
-rw-r--r-- | ace/WFMO_Reactor.i | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/ace/WFMO_Reactor.i b/ace/WFMO_Reactor.i index 3a4215119be..d2d71d92ae0 100644 --- a/ace/WFMO_Reactor.i +++ b/ace/WFMO_Reactor.i @@ -432,6 +432,24 @@ ACE_WFMO_Reactor_Handler_Repository::unbind (ACE_HANDLE handle, } ACE_INLINE long +ACE_WFMO_Reactor::reset_timer_interval + (const long timer_id, + const ACE_Time_Value &interval) +{ + ACE_TRACE ("ACE_WFMO_Reactor::reset_timer_interval"); + ACE_MT (ACE_GUARD_RETURN (ACE_SELECT_REACTOR_TOKEN, ace_mon, this->token_, -1)); + + long result = this->timer_queue_->reset_interval + (timer_id, + interval); + + // Wakeup the owner thread so that it gets the latest timer values + this->notify (); + + return result; +} + +ACE_INLINE long ACE_WFMO_Reactor::schedule_timer (ACE_Event_Handler *handler, const void *arg, const ACE_Time_Value &delta_time, @@ -440,7 +458,10 @@ ACE_WFMO_Reactor::schedule_timer (ACE_Event_Handler *handler, ACE_TRACE ("ACE_WFMO_Reactor::schedule_timer"); long result = this->timer_queue_->schedule - (handler, arg, timer_queue_->gettimeofday () + delta_time, interval); + (handler, + arg, + timer_queue_->gettimeofday () + delta_time, + interval); // Wakeup the owner thread so that it gets the latest timer values this->notify (); |