Skip to content

Commit

Permalink
Duplicate reactor timer functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sonndinh committed Nov 19, 2024
1 parent 3d492fa commit 6ed3475
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ACE/ace/Reactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,18 +571,6 @@ class ACE_Export ACE_Reactor : public ACE_Reactor_Timer_Interface
const ACE_Time_Value &interval =
ACE_Time_Value::zero);

template<class Rep1, class Period1, class Rep2 = int, class Period2 = std::ratio<1>>
long schedule_timer (ACE_Event_Handler *event_handler,
const void *arg,
const std::chrono::duration<Rep1, Period1>& delay,
const std::chrono::duration<Rep2, Period2>& interval =
std::chrono::duration<Rep2, Period2>::zero ())
{
ACE_Time_Value const tv_delay (delay);
ACE_Time_Value const tv_interval (interval);
return this->schedule_timer (event_handler, arg, tv_delay, tv_interval);
}

/**
* Reset recurring timer interval.
*
Expand All @@ -597,14 +585,6 @@ class ACE_Export ACE_Reactor : public ACE_Reactor_Timer_Interface
virtual int reset_timer_interval (long timer_id,
const ACE_Time_Value &interval);

template<class Rep, class Period>
int reset_timer_interval (long timer_id,
const std::chrono::duration<Rep, Period>& interval)
{
ACE_Time_Value const tv_interval (interval);
return this->reset_timer_interval (timer_id, tv_interval);
}

/**
* Cancel timer.
*
Expand Down

0 comments on commit 6ed3475

Please sign in to comment.