const ThreadCompletion = struct completion: Completionheap_ptr: windows.PVOIDheap_handle: *windows.HEAPthread_handle: windows.HANDLE = undefinedfn free(self: ThreadCompletion) void511
512
513
514
515
516
517
518
519
520
521 const ThreadCompletion = struct {
completion: Completion,
heap_ptr: windows.PVOID,
heap_handle: *windows.HEAP,
thread_handle: windows.HANDLE = undefined,
fn free(self: ThreadCompletion) void {
const status = windows.ntdll.RtlFreeHeap(self.heap_handle, .{}, self.heap_ptr);
assert(status != 0);
}
}