0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

ThreadPool: Make join() a no-op in single-threaded mode

This comptime gate is needed to make sure that purely single-threaded
programs don't generate calls to the std.Thread API.

WASI targets successfully build again with this change.
This commit is contained in:
Cody Tapscott 2022-06-10 07:21:54 -07:00 • committed by Andrew Kelley
commit 9b05474d79