aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-11-29 08:43:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-01 19:17:52 -0800
commitde87bad4c3240ab34ee81023e6df1ba94d6d5e6a (patch)
treed943199e158ee6c713a8da2d8caa692bc137a94d /lib/std/Thread.zig
parent144206856e26300cc814b3c894527b062db0e69f (diff)
downloadzig-de87bad4c3240ab34ee81023e6df1ba94d6d5e6a.tar.gz
zig-de87bad4c3240ab34ee81023e6df1ba94d6d5e6a.zip
std.Io.Threaded: don't solve the cancel race after all
Unfortunately, trying again until the cancellation request is acknowledged has been observed to incur a large amount of overhead, and usually strong cancellation guarantees are not needed, so the race condition is not handled here. Users who want to avoid this have this menu of options instead: * Use no libc, in which case Zig std lib can avoid the race (tracking issue: https://codeberg.org/ziglang/zig/issues/30049) * Use musl libc * Use `std.Io.Evented`. But this is not implemented yet. Tracked by - https://codeberg.org/ziglang/zig/issues/30050 - https://codeberg.org/ziglang/zig/issues/30051 glibc + threaded is the only problematic combination.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions