zig/lib/std/Thread
mlugg b866c14328
std: make RwLock test less intensive
This test called `yield` 80,000 times, which is nothing on a system with
little load, but murder on a CI system. macOS' scheduler in particular
doesn't seem to deal with this very well. The `yield` calls also weren't
even necessarily doing what they were meant to: if the optimizer could
figure out that it doesn't clobber some memory, then it could happily
reorder around the `yield`s anyway!

The test has been simplified and made to work better, and the number of
yields have been reduced. The number of overall iterations has also been
reduced, because with the `yield` calls making races very likely, we
don't really need to run too many iterations to be confident that the
implementation is race-free.
2025-10-18 09:28:43 +01:00
..
Mutex std.Thread.Mutex.Recursive: alternate implementation 2024-06-12 18:07:39 -07:00
Condition.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
Futex.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
Mutex.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
Pool.zig de-genericify SinglyLinkedList 2025-04-03 14:55:04 -07:00
ResetEvent.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
RwLock.zig std: make RwLock test less intensive 2025-10-18 09:28:43 +01:00
Semaphore.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
WaitGroup.zig combine codegen work queue and linker task queue 2024-10-23 16:27:39 -07:00