aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Pool.zig
AgeCommit message (Collapse)Author
2025-01-16x86_64: fix crashes compiling the compiler and testsJacob Young
2024-11-11Revert "Enable thread_pool function to throw errors (#20260)"Andrew Kelley
This reverts commit d346d074ebe5347f730a70d3a88b12f279bb405d. I would like a chance to review this, please.
2024-11-11Enable thread_pool function to throw errors (#20260)ippsav
* std.ThreadPool: allow error union return type * allow noreturn in Pool.zig
2024-07-09test: Add `spawn` behavior testmochalins
2024-07-09fix: Update `spawn`'s' `runFn` signaturemochalins
2024-07-08Compilation: put supported codegen backends on a separate threadJacob Young
(There are no supported backends.)
2024-07-07InternPool: implement and use thread-safe list for extra and limbsJacob Young
2024-07-07InternPool: temporarily disable multi-threaded behaviorJacob Young
This reduces the cost of the new data structure until the multi-threaded behavior is actually used.
2024-07-07InternPool: implement thread-safe hash mapJacob Young
2024-07-07Zcu: introduce `PerThread` and pass to all the functionsJacob Young
2024-05-03add std.Thread.Pool.spawnWgAndrew Kelley
This function accepts a WaitGroup parameter and manages the reference counting therein. It also is infallible. The existing `spawn` function is still handy when the job wants to further schedule more tasks.
2024-04-19std: fix Thread.Pool.spawnGethDW
`@alignCast` was required for args with greater alignment than that of a pointer.
2024-03-30Update uses of `@fieldParentPtr` to use RLSJacob Young
2024-03-30Update uses of `@fieldParentPtr` to pass a pointer typeJacob Young
2024-01-22Free threads in std.Thread.Pool.init only with pool.joinLittleote
Free the allocated threads in the initialization of a thread pool only with pool.join instead of additionally calling allocator.free causing free to be called twice. Resolves #18643
2023-03-15zig build: add a -j<N> option for limiting concurrencyAndrew Kelley
2023-03-15extract ThreadPool and WaitGroup from compiler to std libAndrew Kelley