MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / ConsoleLoopCondition

Method ConsoleLoopCondition

src/lib/ConsoleLoopCondition.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28ConsoleLoopCondition::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
34ConsoleLoopCondition::~ConsoleLoopCondition() {
35 SetConsoleCtrlHandler(&ExitHandler, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected