MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ConsoleHandler

Method ConsoleHandler

IntelPresentMon/PresentMonService/Service.cpp:232–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232BOOL WINAPI ConsoleDebugMockService::ConsoleHandler(DWORD signal)
233{
234 if (signal == CTRL_C_EVENT || signal == CTRL_CLOSE_EVENT) {
235 Get().SignalServiceStop();
236 if (signal == CTRL_CLOSE_EVENT) {
237 // give the main thread time to respond to the close signal
238 // exiting this handler to quickly often gets the process killed
239 // before it can shutdown gracefully
240 std::this_thread::sleep_for(1ms);
241 }
242 return TRUE;
243 }
244 return FALSE;
245}
246
247ConsoleDebugMockService& ConsoleDebugMockService::Get()
248{

Callers

nothing calls this directly

Calls 1

SignalServiceStopMethod · 0.80

Tested by

no test coverage detected