aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/WaitGroup.zig
AgeCommit message (Collapse)Author
2025-10-29std.Thread.ResetEvent: make it more reusableAndrew Kelley
2024-10-23combine codegen work queue and linker task queueAndrew Kelley
these tasks have some shared data dependencies so they cannot be done simultaneously. Future work should untangle these data dependencies so that more can be done in parallel. for now this commit ensures correctness by making linker input parsing and codegen tasks part of the same queue.
2024-10-04remove `@fence` (#21585)David Rubin
closes #11650
2024-09-11thread: don't leak the thread in `spawnManager` (#21379)David Rubin
2024-03-11std.builtin: make atomic order fields lowercaseTristan Ross
2024-03-10std.Thread.WaitGroup: add spawnManagedAndrew Kelley
Provides a convenient way to spawn a new thread that bypasses a thread pool. Appropriate when the spawned thread delegates all of its work.
2023-11-22rework std.atomicAndrew Kelley
* move std.atomic.Atomic to std.atomic.Value * fix incorrect argument order passed to testing.expectEqual * make the functions be a thin wrapper over the atomic builtins and stick to the naming conventions. * remove pointless functions loadUnchecked and storeUnchecked. Instead, name the field `raw` instead of `value` (which is redundant with the type name). * simplify the tests by not passing every possible combination. Many cases were iterating over every possible combinations but then not even using the for loop element value! * remove the redundant compile errors which are already implemented by the language itself. * remove dead x86 inline assembly. this should be implemented in the language if at all.
2023-11-19lib: correct unnecessary uses of 'var'mlugg
2023-03-15extract ThreadPool and WaitGroup from compiler to std libAndrew Kelley