|
SObjectizer 5.8
|
A timer heap thread template. More...
#include <all.hpp>
Public Member Functions | |
| timer_heap_thread_template () | |
| Default constructor. | |
| timer_heap_thread_template (std::size_t initial_heap_capacity) | |
| Constructor to specify initial capacity of heap-array. | |
| timer_heap_thread_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::thread_impl_template< details::timer_heap_engine< ::timertt::thread_safety::safe, Timer_Action, Error_Logger, Actor_Exception_Handler > > | |
| thread_impl_template (Args &&... args) | |
| Constructor with all parameters. | |
| ~thread_impl_template () | |
| Destructor. | |
| void | start () |
| Start timer thread. | |
| void | shutdown () |
| Initiate shutdown for the timer thread without waiting for completion. | |
| void | join () |
| Wait for completion of timer thread. | |
| void | shutdown_and_join () |
| Initiate shutdown and wait for completion. | |
Public Member Functions inherited from timertt::details::basic_methods_impl_mixin< details::timer_heap_engine< ::timertt::thread_safety::safe, Timer_Action, Error_Logger, Actor_Exception_Handler >, consumer_type::thread > | |
| 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 thread template.
| Error_Logger | type of logger for errors detected during timer thread execution. Interface for error logger is defined by default_error_logger class. |
| Timer_Action | type of functor to perform an user-defined action when timer expires. This must be Moveable and MoveConstructible type. |
| 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 4008 of file 3rd_party/timertt/all.hpp.
|
private |
Shorthand for base type.
Definition at line 4018 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 4032 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 4040 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 4050 of file 3rd_party/timertt/all.hpp.