|
| timer_wheel_manager_template () |
| Default constructor.
|
|
| timer_wheel_manager_template (unsigned int wheel_size, monotonic_clock::duration granularity) |
| Constructor with wheel size and granularity parameters.
|
|
| timer_wheel_manager_template (unsigned int wheel_size, monotonic_clock::duration granularity, Error_Logger error_logger, Actor_Exception_Handler exception_handler) |
| Constructor with all parameters.
|
|
| manager_impl_template (Args &&... args) |
| Constructor with all parameters.
|
|
void | reset () |
| Reset all timers and return manager to the initial state.
|
|
void | process_expired_timers () |
| Perform processing of expired timers.
|
|
std::tuple< bool, monotonic_clock::time_point > | nearest_time_point () |
| Get the time for next process_expired_timers invocation.
|
|
monotonic_clock::duration | timeout_before_nearest_timer (Duration default_timeout) |
| Get the sleeping time before the earlist timer expiration.
|
|
| basic_methods_impl_mixin (Args &&... args) |
| Constructor with all parameters.
|
|
timer_holder | allocate () |
| Allocate of new timer object.
|
|
void | activate (timer_holder timer, Duration_1 pause, timer_action action) |
| Activate timer and schedule it for execution.
|
|
void | activate (scoped_timer_object &timer, Duration_1 pause, timer_action action) |
| Activate a scoped timer and schedule it for execution.
|
|
void | activate (Duration_1 pause, timer_action action) |
| Activate timer and schedule it for execution.
|
|
void | activate (timer_holder timer, Duration_1 pause, Duration_2 period, timer_action action) |
| Activate timer and schedule it for execution.
|
|
void | activate (scoped_timer_object &timer, Duration_1 pause, Duration_2 period, timer_action action) |
| Activate a scoped timer and schedule it for execution.
|
|
void | activate (Duration_1 pause, Duration_2 period, timer_action action) |
| Activate timer and schedule it for execution.
|
|
void | reschedule (timer_holder timer, Duration_1 pause, timer_action action) |
| Perform an attempt to reschedule a timer.
|
|
void | reschedule (timer_holder timer, Duration_1 pause, Duration_2 period, timer_action action) |
| Perform an attempt to reschedule a timer.
|
|
void | deactivate (timer_holder timer) |
| Deactivate timer and remove it from the list.
|
|
void | deactivate (scoped_timer_object &timer) |
| Deactivate timer and remove it from the list.
|
|
timer_quantities | get_timer_quantities () |
| Count of timers of various types.
|
|
bool | empty () |
| Check for emptiness.
|
|
template<typename Thread_Safety, typename Timer_Action = default_timer_action_type, typename Error_Logger = default_error_logger, typename Actor_Exception_Handler = default_actor_exception_handler>
class timertt::timer_wheel_manager_template< Thread_Safety, Timer_Action, Error_Logger, Actor_Exception_Handler >
A timer wheel manager template.
- Note
- Please see description of details::timer_wheel_engine for the details of the timer wheel mechanism.
- Template Parameters
-
Thread_Safety | Thread-safety indicator. Must be timertt::thread_safety::unsafe or timertt::thread_safety::safe. |
Timer_Action | type of functor to perform an user-defined action when timer expires. This must be Moveable and MoveConstructible type. |
Error_Logger | type of logger for errors detected during timer handling. Interface for error logger is defined by default_error_logger class. |
Actor_Exception_Handler | type of handler for dealing with exceptions thrown from timer actors. Interface for exception handler is defined by default_actor_exception_handler. |
- Since
- v.1.1.0
Definition at line 3770 of file 3rd_party/timertt/all.hpp.
template<typename Thread_Safety , typename Timer_Action = default_timer_action_type, typename Error_Logger = default_error_logger, typename Actor_Exception_Handler = default_actor_exception_handler>
timertt::timer_wheel_manager_template< Thread_Safety, Timer_Action, Error_Logger, Actor_Exception_Handler >::timer_wheel_manager_template |
( |
unsigned int | wheel_size, |
|
|
monotonic_clock::duration | granularity, |
|
|
Error_Logger | error_logger, |
|
|
Actor_Exception_Handler | exception_handler ) |
|
inline |
Constructor with all parameters.
- Parameters
-
wheel_size | Size of the wheel. |
granularity | Size of time step for the timer_wheel. |
error_logger | An error logger for timer thread. |
exception_handler | An actor exception handler for timer thread. |
Definition at line 3812 of file 3rd_party/timertt/all.hpp.