mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 06:18:32 +00:00
windows threading: add missing call to CloseHandle
This commit is contained in:
parent
3a8dc4e90d
commit
86a428a4a5
@ -2477,6 +2477,7 @@ pub const Thread = struct {
|
||||
},
|
||||
builtin.Os.windows => {
|
||||
assert(windows.WaitForSingleObject(self.data.handle, windows.INFINITE) == windows.WAIT_OBJECT_0);
|
||||
assert(windows.CloseHandle(self.data.handle) != 0);
|
||||
assert(windows.HeapFree(self.data.heap_handle, 0, self.data.alloc_start) != 0);
|
||||
},
|
||||
else => @compileError("Unsupported OS"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user