diff options
| author | Andrew Kelley <andrewrk@noreply.codeberg.org> | 2025-12-22 20:09:34 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrewrk@noreply.codeberg.org> | 2025-12-22 20:09:34 +0100 |
| commit | 985a3565c6130c7279319e9c36642f0b958e6944 (patch) | |
| tree | 30f4a6bed794330daefb4d3d7ef6f900e21d24b9 /lib/std/Thread.zig | |
| parent | 3af842f0e89125e65a87e5752234bf7e0051aa12 (diff) | |
| parent | 23e5a17187dc3a1f61dcb40b681f6730334d3667 (diff) | |
| download | zig-985a3565c6130c7279319e9c36642f0b958e6944.tar.gz zig-985a3565c6130c7279319e9c36642f0b958e6944.zip | |
Merge pull request 'Replace uses of `std.Thread.Pool` with `std.Io`, and remove `std.Thread.Pool`' (#30557) from compiler-std.Io into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30557
Reviewed-by: Andrew Kelley <andrewrk@noreply.codeberg.org>
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index f0fddd7ed0..35b268b349 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -18,9 +18,10 @@ 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 Pool = @compileError("deprecated; consider using 'std.Io.Group' with 'std.Io.Threaded'"); + pub const use_pthreads = native_os != .windows and native_os != .wasi and builtin.link_libc; /// A thread-safe logical boolean value which can be `set` and `unset`. @@ -1754,7 +1755,6 @@ test { _ = Semaphore; _ = Condition; _ = RwLock; - _ = Pool; } fn testIncrementNotify(value: *usize, event: *ResetEvent) void { |
