aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-11-27 08:42:06 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-01 19:17:52 -0800
commit29e418cbfb3d5e5800ac2ad267b21cf2b8942c2c (patch)
treefd28b3a438e564c13137d5e178248e3087c35328 /lib/std/Thread.zig
parent95f93a0b281e32583edef36808231a5f61fb7de1 (diff)
downloadzig-29e418cbfb3d5e5800ac2ad267b21cf2b8942c2c.tar.gz
zig-29e418cbfb3d5e5800ac2ad267b21cf2b8942c2c.zip
std.Io.Threaded: fix the cancellation race
Now, before a syscall is entered, beginSyscall is called, which may return error.Canceled. After syscall returns, whether error or success, endSyscall is called. If the syscall returns EINTR then checkCancel is called. `cancelRequested` is removed from the std.Io VTable for now, with plans to replace it with a more powerful API that allows protection against cancellation requests. closes #25751
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions