We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f3569 commit 1b3e1d9Copy full SHA for 1b3e1d9
llvm/lib/Support/Windows/Threading.inc
@@ -42,6 +42,9 @@ void llvm_thread_join_impl(HANDLE hThread) {
42
if (::WaitForSingleObject(hThread, INFINITE) == WAIT_FAILED) {
43
ReportLastErrorFatal("WaitForSingleObject failed");
44
}
45
+ if (::CloseHandle(hThread) == FALSE) {
46
+ ReportLastErrorFatal("CloseHandle failed");
47
+ }
48
49
50
void llvm_thread_detach_impl(HANDLE hThread) {
0 commit comments