diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-11-28 18:07:42 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-01 19:17:52 -0800 |
| commit | d60760d61e19018aa354fbb2f241444db88ca51b (patch) | |
| tree | 07e87ca4feedf01615c9090ed6c910c226431681 /lib/std/Thread.zig | |
| parent | 29e418cbfb3d5e5800ac2ad267b21cf2b8942c2c (diff) | |
| download | zig-d60760d61e19018aa354fbb2f241444db88ca51b.tar.gz zig-d60760d61e19018aa354fbb2f241444db88ca51b.zip | |
std.Io.Threaded: tune requestCancel
On a heavily loaded Linux 6.17.5, I observed a maximum of 20 attempts
not acknowledged before the timeout (including exponential backoff) was
sufficient, despite the heavy load.
The time wasted here sleeping is mitigated by the fact that, later on,
the system will likely wait for the canceled task, causing it to
indefinitely yield until the canceled task finishes, and the task must
acknowledge the cancel before it proceeds to that point.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions
