mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
while still preserving the guarantee about async() being assigned a unit of concurrency (or immediately running the task), this change: * retains the error from calling getCpuCount() * spawns all threads in detached mode, using WaitGroup to join them * treats all workers the same regardless of whether they are processing concurrent or async tasks. one thread pool does all the work, while respecting async and concurrent limits.
87 lines
2.5 KiB
87 lines
2.5 KiB