Files
zig/lib/std/Io
Andrew Kelley 2bc89a5198 std.Io.Threaded: make parking_futex lock-free
And therefore no longer depend on a mutex API.

The idea here is to rely on cache line operations being very fast.
Buckets span exactly one cache line each, storing only waiter pointers.
Additions and removals do linear weak cmpxchg scan over the cache line,
repeating until sucess.

If there are more parked threads with bucket hash collisions than fits
into a cache line then wait() degrades into a spin lock.
2026-02-02 18:55:31 -08:00
..
2026-01-07 18:00:36 -08:00
2026-01-30 02:07:26 -08:00
2026-01-30 22:03:14 -08:00