|
SObjectizer 5.8
|
Template-based implementation of timer thread. More...
#include <all.hpp>
Public Member Functions | |
| template<typename... Args> | |
| 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< Engine, 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. | |
Protected Member Functions | |
| void | body () |
| Thread body. | |
| void | sleep_for_next_event (typename base_type::lock_guard &lock) |
| Waiting for next event to process. | |
Protected Attributes | |
Object's attributes. | |
| bool | m_shutdown = false |
| Shutdown flag. | |
Protected Attributes inherited from timertt::details::basic_methods_impl_mixin< Engine, consumer_type::thread > | |
| Engine | m_engine |
| Actual timer engine instance. | |
Private Types | |
| using | base_type |
| Shorthand for base type. | |
Additional Inherited Members | |
Public Types inherited from timertt::details::basic_methods_impl_mixin< Engine, consumer_type::thread > | |
| using | thread_safety |
| A typedef for thread safety type from Engine. | |
| using | timer_action |
| An alias for timer_action type. | |
| using | scoped_timer_object |
| An alias for scoped timer objects. | |
| using | timer_holder |
| Shorthand for timer objects' smart pointer. | |
Template-based implementation of timer thread.
| Engine | actual type of engine to be used. |
Definition at line 3513 of file 3rd_party/timertt/all.hpp.
|
private |
Shorthand for base type.
Definition at line 3517 of file 3rd_party/timertt/all.hpp.
|
inline |
Constructor with all parameters.
Definition at line 3524 of file 3rd_party/timertt/all.hpp.
|
inline |
|
inlineprotected |
Thread body.
Definition at line 3612 of file 3rd_party/timertt/all.hpp.
|
inline |
Wait for completion of timer thread.
Method shutdown() must be called somewhere else.
Definition at line 3575 of file 3rd_party/timertt/all.hpp.
|
inline |
Initiate shutdown for the timer thread without waiting for completion.
Definition at line 3559 of file 3rd_party/timertt/all.hpp.
|
inline |
Initiate shutdown and wait for completion.
Definition at line 3593 of file 3rd_party/timertt/all.hpp.
|
inlineprotected |
Waiting for next event to process.
If the list is not emply the thread will sleep until time point of the first timer in the list.
| lock | Object's lock. The lock is necessary for waiting on condition variable. |
Definition at line 3633 of file 3rd_party/timertt/all.hpp.
|
inline |
Start timer thread.
| std::runtime_error | if thread is already started. |
Definition at line 3544 of file 3rd_party/timertt/all.hpp.
|
protected |
Shutdown flag.
Definition at line 3605 of file 3rd_party/timertt/all.hpp.