MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / Wait

Method Wait

source/src/tools/thread.h:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected