diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-19 16:48:35 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:11 -0800 |
| commit | 64de4a7371e3851dddf39c608d08d480395bb0ab (patch) | |
| tree | 2d323d592f66dbe273199190ccd7894500e03e90 /lib/std/Thread.zig | |
| parent | a8088306f6223b07ad9b7ae37486bcc9e0ac08c9 (diff) | |
| download | zig-64de4a7371e3851dddf39c608d08d480395bb0ab.tar.gz zig-64de4a7371e3851dddf39c608d08d480395bb0ab.zip | |
std.Io.Threaded: remove handling of ECANCELED
The only known situation in which this occurs is when using musl with
the undocumented extension PTHREAD_CANCEL_MASKED, causing the next
syscall to return ECANCELED.
However zig std lib does not use this mechanism, even when targeting
musl libc because it would require each async task to be on a fresh
pthread.
For the same reason, if third party code were to cause ECANCELED to be
returned from any of these syscalls, it would cause subsequent tasks to
be incorrectly canceled since they cannot be rearmed.
Thus, this Io implementation cannot handle this error code correctly,
expecting never to receive it.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions
