|
RESTinio
|
Timer factory implementation using asio timers. More...
#include <asio_timer_manager.hpp>
Classes | |
| class | timer_guard_t |
| Timer guard for async operations. More... | |
| struct | factory_t |
Public Member Functions | |
| asio_timer_manager_t (asio_ns::io_context &io_context, std::chrono::steady_clock::duration check_period) | |
| timer_guard_t | create_timer_guard () const |
| Create guard for connection. | |
Start/stop timer manager. | |
| void | start () const noexcept |
| void | stop () const noexcept |
Private Attributes | |
| asio_ns::io_context & | m_io_context |
| An instanse of io_context to work with. | |
| const std::chrono::steady_clock::duration | m_check_period |
| Check period for timer events. | |
Timer factory implementation using asio timers.
Definition at line 29 of file asio_timer_manager.hpp.
|
inline |
Definition at line 33 of file asio_timer_manager.hpp.
|
inline |
Create guard for connection.
Definition at line 88 of file asio_timer_manager.hpp.
|
inlinenoexcept |
Definition at line 95 of file asio_timer_manager.hpp.
|
inlinenoexcept |
Definition at line 96 of file asio_timer_manager.hpp.
|
private |
Check period for timer events.
Definition at line 123 of file asio_timer_manager.hpp.
|
private |
An instanse of io_context to work with.
Definition at line 120 of file asio_timer_manager.hpp.