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 0ef94a9 commit 125c2fcCopy full SHA for 125c2fc
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