Skip to content

Commit

Permalink
Call base member template
Browse files Browse the repository at this point in the history
  • Loading branch information
sonndinh committed Nov 21, 2024
1 parent 6ed3475 commit bb2a27e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ACE/ace/Reactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,15 @@ 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 ())
{
return ACE_Reactor_Timer_Interface::schedule_timer(event_handler, arg, delay, interval);
}

/**
* Reset recurring timer interval.
*
Expand All @@ -585,6 +594,13 @@ 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)
{
return ACE_Reactor_Timer_Interface::reset_timer_interval(timer_id, interval);
}

/**
* Cancel timer.
*
Expand Down

0 comments on commit bb2a27e

Please sign in to comment.