| 13 | namespace { |
| 14 | |
| 15 | class AsioTimer : public Timer |
| 16 | { |
| 17 | public: |
| 18 | using Timer::Timer; |
| 19 | |
| 20 | protected: |
| 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 | |
| 31 | public: |
| 32 | std::atomic<bool> canceled{false}; |
| 33 | std::atomic<bool> expired{false}; |
| 34 | std::atomic<bool> errors{false}; |
| 35 | }; |
| 36 | |
| 37 | } // namespace |
| 38 |
nothing calls this directly
no outgoing calls
no test coverage detected