| 24 | } |
| 25 | |
| 26 | std::shared_ptr<timer> timer::create(boost::asio::io_context& _io, std::chrono::milliseconds _interval, task_t _task) { |
| 27 | return std::make_shared<timer>(hidden{}, abstract_socket_factory::get()->create_timer(_io), _interval, std::move(_task)); |
| 28 | } |
| 29 | |
| 30 | void timer::start() { |
| 31 | std::scoped_lock lock{mtx_}; |
nothing calls this directly
no test coverage detected