diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-11-29 08:43:57 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-01 19:17:52 -0800 |
| commit | de87bad4c3240ab34ee81023e6df1ba94d6d5e6a (patch) | |
| tree | d943199e158ee6c713a8da2d8caa692bc137a94d /lib/std/Thread.zig | |
| parent | 144206856e26300cc814b3c894527b062db0e69f (diff) | |
| download | zig-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
