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/Select_Reactor_T.cpp | |
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/Select_Reactor_T.cpp')
-rw-r--r-- | ace/Select_Reactor_T.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/ace/Select_Reactor_T.cpp b/ace/Select_Reactor_T.cpp index 4b0f649a52f..562b4b0410d 100644 --- a/ace/Select_Reactor_T.cpp +++ b/ace/Select_Reactor_T.cpp @@ -668,8 +668,6 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::remove_handler return result; } -// Note the queue handles its own locking. - template <class ACE_SELECT_REACTOR_TOKEN> long ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_timer (ACE_Event_Handler *handler, @@ -681,7 +679,23 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_timer ACE_MT (ACE_GUARD_RETURN (ACE_SELECT_REACTOR_TOKEN, ace_mon, this->token_, -1)); return this->timer_queue_->schedule - (handler, arg, timer_queue_->gettimeofday () + delta_time, interval); + (handler, + arg, + timer_queue_->gettimeofday () + delta_time, + interval); +} + +template <class ACE_SELECT_REACTOR_TOKEN> int +ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::reset_timer_interval + (const long timer_id, + const ACE_Time_Value &interval) +{ + ACE_TRACE ("ACE_Select_Reactor_T::reset_timer_interval"); + ACE_MT (ACE_GUARD_RETURN (ACE_SELECT_REACTOR_TOKEN, ace_mon, this->token_, -1)); + + return this->timer_queue_->reset_interval + (timer_id, + interval); } // Main event loop driver that blocks for <max_wait_time> before |