aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Io/Threaded
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-11-21 20:56:29 -0800
committerGitHub <noreply@github.com>2025-11-21 20:56:29 -0800
commit2ea55d7153b9832e7f00c8a85ca4941ccde6b0d6 (patch)
tree0b667f096647520f2c0813030c7ff8b7868fcddd /lib/std/Io/Threaded
parentd828115dabf3b06711788dc2f424a1ef3cedd6a3 (diff)
parent7096e66ca9b7b1e4dc7d6d5d5bf1e6833f1be039 (diff)
downloadzig-2ea55d7153b9832e7f00c8a85ca4941ccde6b0d6.tar.gz
zig-2ea55d7153b9832e7f00c8a85ca4941ccde6b0d6.zip
Merge pull request #25998 from ziglang/std.Io.Threaded-async-guarantee
std.Io: guarantee when async() returns, task is already completed or has been successfully assigned a unit of concurrency
Diffstat (limited to 'lib/std/Io/Threaded')
-rw-r--r--lib/std/Io/Threaded/test.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Io/Threaded/test.zig b/lib/std/Io/Threaded/test.zig
index 7e6e687cf2..16afae7b63 100644
--- a/lib/std/Io/Threaded/test.zig
+++ b/lib/std/Io/Threaded/test.zig
@@ -10,7 +10,7 @@ test "concurrent vs main prevents deadlock via oversubscription" {
defer threaded.deinit();
const io = threaded.io();
- threaded.cpu_count = 1;
+ threaded.async_limit = .nothing;
var queue: Io.Queue(u8) = .init(&.{});
@@ -38,7 +38,7 @@ test "concurrent vs concurrent prevents deadlock via oversubscription" {
defer threaded.deinit();
const io = threaded.io();
- threaded.cpu_count = 1;
+ threaded.async_limit = .nothing;
var queue: Io.Queue(u8) = .init(&.{});