| 7 | static HANDLE Start(PTHREAD_START_ROUTINE pfunc, LPVOID lParam = 0) { return CreateThread(0, 0, pfunc, lParam, 0, 0); } |
| 8 | static BOOL Close(HANDLE hThread, DWORD exitCode = 0) { if (hThread) return TerminateThread(hThread, exitCode); return TRUE; } |
| 9 | static DWORD Wait(HANDLE hThread, bool resetHandle = true) { |
| 10 | DWORD exitCode; |
| 11 | WaitForSingleObject(hThread, INFINITE); |
| 12 | GetExitCodeThread(hThread, &exitCode); |
| 13 | if (resetHandle) hThread = nullptr; |
| 14 | return exitCode; |
| 15 | } |
| 16 | }; |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected