SObjectizer
5.7
|
A common part for all timer engines. More...
#include <all.hpp>
Public Types | |
using | thread_safety = Thread_Safety |
Indicator of thread-safety. More... | |
using | timer_action = Timer_Action |
Alias for Timer_Action. More... | |
Public Member Functions | |
engine_common (Error_Logger error_logger, Actor_Exception_Handler exception_handler) | |
Initializing constructor. More... | |
timer_quantities | get_timer_quantities () const |
Get the quantities of timers of various types. More... | |
Protected Member Functions | |
void | inc_timer_count (timer_kind kind) |
Helper method for increment the count of timers of the specific type. More... | |
void | dec_timer_count (timer_kind kind) |
Helper method for decrement the count of timers of the specific type. More... | |
void | reset_timer_count () |
Helper method for reseting quantities of timers to zero. More... | |
Protected Attributes | |
Error_Logger | m_error_logger |
Error logger. More... | |
Actor_Exception_Handler | m_exception_handler |
Exception handler. More... | |
timer_quantities | m_timer_quantities |
Quantities of timers of various types. More... | |
A common part for all timer engines.
Will be used by concrete engines for storing instances of Error_Logger and Actor_Exception_Handler.
Also defines type thread_safety to be used later.
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. |
using timertt::details::engine_common< Thread_Safety, Timer_Action, Error_Logger, Actor_Exception_Handler >::thread_safety = Thread_Safety |
Indicator of thread-safety.
using timertt::details::engine_common< Thread_Safety, Timer_Action, Error_Logger, Actor_Exception_Handler >::timer_action = Timer_Action |
Alias for Timer_Action.
|
inline |
Initializing constructor.
|
inlineprotected |
Helper method for decrement the count of timers of the specific type.
|
inline |
Get the quantities of timers of various types.
|
inlineprotected |
Helper method for increment the count of timers of the specific type.
|
inlineprotected |
Helper method for reseting quantities of timers to zero.
|
protected |
Error logger.
|
protected |
Exception handler.
|
protected |
Quantities of timers of various types.