MCPcopy Create free account
hub / github.com/chronoxor/CppServer / Timer

Method Timer

source/server/asio/timer.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace Asio {
13
14Timer::Timer(const std::shared_ptr<Service>& service)
15 : _service(service),
16 _io_context(_service->GetAsioContext()),
17 _strand(*_io_context),
18 _strand_required(_service->IsStrandRequired()),
19 _timer(*_io_context)
20{
21 assert((service != nullptr) && "Asio service is invalid!");
22 if (service == nullptr)
23 throw CppCommon::ArgumentException("Asio service is invalid!");
24}
25
26Timer::Timer(const std::shared_ptr<Service>& service, const CppCommon::UtcTime& time)
27 : _service(service),

Callers

nothing calls this directly

Calls 1

IsStrandRequiredMethod · 0.80

Tested by

no test coverage detected