|
SObjectizer 5.8
|
A timer heap manager template. More...
#include <all.hpp>
Public Member Functions | |
| timer_heap_manager_template () | |
| Default constructor. | |
| timer_heap_manager_template (std::size_t initial_heap_capacity) | |
| Constructor to specify initial capacity of heap-array. | |
| timer_heap_manager_template (std::size_t initial_heap_capacity, Error_Logger error_logger, Actor_Exception_Handler exception_handler) | |
| Constructor with all parameters. | |
Public Member Functions inherited from timertt::details::manager_impl_template< details::timer_heap_engine< Thread_Safety, default_timer_action_type, default_error_logger, default_actor_exception_handler > > | |
| 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. | |
Public Member Functions inherited from timertt::details::basic_methods_impl_mixin< details::timer_heap_engine< Thread_Safety, default_timer_action_type, default_error_logger, default_actor_exception_handler >, consumer_type::manager > | |
| 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. | |
Private Types | |
| using | base_type |
| Shorthand for base type. | |
A timer heap manager template.
| 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. |
Definition at line 4110 of file 3rd_party/timertt/all.hpp.
|
private |
Shorthand for base type.
Definition at line 4120 of file 3rd_party/timertt/all.hpp.
|
inline |
Default constructor.
Value default_initial_heap_capacity() is used as initial heap array size.
Definition at line 4134 of file 3rd_party/timertt/all.hpp.
|
inline |
Constructor to specify initial capacity of heap-array.
| initial_heap_capacity | An initial size for heap array. |
Definition at line 4142 of file 3rd_party/timertt/all.hpp.
|
inline |
Constructor with all parameters.
| initial_heap_capacity | An initial size for heap array. |
| error_logger | An error logger for timer thread. |
| exception_handler | An actor exception handler for timer thread. |
Definition at line 4152 of file 3rd_party/timertt/all.hpp.