From 8c0ac0b46ddb29d20b1e78369a698336980eb3a2 Mon Sep 17 00:00:00 2001 From: Jarrod Meyer Date: Thu, 25 Jul 2024 19:59:39 -0400 Subject: [PATCH] windows: add Timeout status result for GetQueuedCompletionStatus --- lib/std/os/windows.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index fbad21e90bf7..24e66a4f308b 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -516,6 +516,7 @@ pub const GetQueuedCompletionStatusResult = enum { Aborted, Cancelled, EOF, + Timeout, }; pub fn GetQueuedCompletionStatus( @@ -536,6 +537,7 @@ pub fn GetQueuedCompletionStatus( .ABANDONED_WAIT_0 => return GetQueuedCompletionStatusResult.Aborted, .OPERATION_ABORTED => return GetQueuedCompletionStatusResult.Cancelled, .HANDLE_EOF => return GetQueuedCompletionStatusResult.EOF, + .WAIT_TIMEOUT => return GetQueuedCompletionStatusResult.Timeout, else => |err| { if (std.debug.runtime_safety) { @setEvalBranchQuota(2500);