| 261 | } |
| 262 | |
| 263 | void 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 | |
| 275 | bool WaitForSingleObject(HANDLE hObject, DWORD milliSeconds) |
| 276 | { |
no test coverage detected