extract ThreadPool and WaitGroup from compiler to std lib

This commit is contained in:
Andrew Kelley
2023-02-13 13:39:06 -07:00
parent 0b744d7d67
commit 5b90fa05a4
9 changed files with 21 additions and 19 deletions

View File

@@ -16,6 +16,8 @@ pub const Mutex = @import("Thread/Mutex.zig");
pub const Semaphore = @import("Thread/Semaphore.zig");
pub const Condition = @import("Thread/Condition.zig");
pub const RwLock = @import("Thread/RwLock.zig");
pub const Pool = @import("Thread/Pool.zig");
pub const WaitGroup = @import("Thread/WaitGroup.zig");
pub const use_pthreads = target.os.tag != .windows and target.os.tag != .wasi and builtin.link_libc;
const is_gnu = target.abi.isGnu();