MCPcopy Create free account
hub / github.com/DarthTon/Xenos / WatchdogProc

Method WatchdogProc

src/DumpHandler.cpp:111–128  ·  view source on GitHub ↗

Crash watcher DumpHandler pointer Error code

Source from the content-addressed store, hash-verified

109/// <param name="lpParam">DumpHandler pointer</param>
110/// <returns>Error code</returns>
111DWORD CALLBACK DumpHandler::WatchdogProc( LPVOID lpParam )
112{
113 DumpHandler* pClass = reinterpret_cast<DumpHandler*>(lpParam);
114
115 // Wait for crashed thread id
116 while (pClass && pClass->_FailedThread == 0)
117 {
118 if (pClass->_active)
119 Sleep( 5 );
120 else
121 return ERROR_SUCCESS;
122 }
123
124 if (pClass)
125 pClass->ExceptionHandler();
126
127 return ERROR_SUCCESS;
128}
129
130/// <summary>
131/// Actual exception handler

Callers

nothing calls this directly

Calls 1

ExceptionHandlerMethod · 0.80

Tested by

no test coverage detected