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

Class AsioTimer

tests/test_timer.cpp:15–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace {
14
15class AsioTimer : public Timer
16{
17public:
18 using Timer::Timer;
19
20protected:
21 void onTimer(bool aborted) override
22 {
23 if (aborted)
24 canceled = true;
25 else
26 expired = true;
27 }
28
29 void onError(int error, const std::string& category, const std::string& message) override { errors = true; }
30
31public:
32 std::atomic<bool> canceled{false};
33 std::atomic<bool> expired{false};
34 std::atomic<bool> errors{false};
35};
36
37} // namespace
38

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected