Skip to content

Commit

Permalink
windows: add Timeout status result for GetQueuedCompletionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrod246 committed Jul 27, 2024
1 parent 289718a commit 8c0ac0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/std/os/windows.zig
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ pub const GetQueuedCompletionStatusResult = enum {
Aborted,
Cancelled,
EOF,
Timeout,
};

pub fn GetQueuedCompletionStatus(
Expand All @@ -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);
Expand Down

0 comments on commit 8c0ac0b

Please sign in to comment.