MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / WaitForSingleObject

Function WaitForSingleObject

Win32Lib/Win32Lib.cpp:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void WaitForSingleObject(HANDLE hObject)
264{
265 auto rc = ::WaitForSingleObject(hObject, INFINITE);
266 switch (rc)
267 {
268 case WAIT_OBJECT_0: return;
269 case WAIT_FAILED: ThrowLastError("WaitForSingleObject");
270 case WAIT_TIMEOUT: assert(!"Unexpected timeout");
271 default: throw std::runtime_error("WaitForSingleObject");
272 }
273}
274
275bool WaitForSingleObject(HANDLE hObject, DWORD milliSeconds)
276{

Callers 4

WaitMethod · 0.85
IsProcessRunningFunction · 0.85
MutexLockMethod · 0.85
WriteMethod · 0.85

Calls 1

ThrowLastErrorFunction · 0.85

Tested by

no test coverage detected