| 26 | }; |
| 27 | |
| 28 | ConsoleLoopCondition::ConsoleLoopCondition() : p(std::make_shared<Impl>()) { |
| 29 | gExitEvent = Win32::or_throw::CreateEvent(nullptr, false, false, nullptr); |
| 30 | p->mTimerEvent = Win32::or_throw::CreateWaitableTimer(nullptr, true, nullptr); |
| 31 | SetConsoleCtrlHandler(&ExitHandler, true); |
| 32 | } |
| 33 | |
| 34 | ConsoleLoopCondition::~ConsoleLoopCondition() { |
| 35 | SetConsoleCtrlHandler(&ExitHandler, false); |
nothing calls this directly
no outgoing calls
no test coverage detected