We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std.Thread.use_pthreads
1 parent 09a5954 commit 0aa71f3Copy full SHA for 0aa71f3
lib/std/Thread.zig
@@ -20,7 +20,7 @@ pub const RwLock = @import("Thread/RwLock.zig");
20
pub const Pool = @import("Thread/Pool.zig");
21
pub const WaitGroup = @import("Thread/WaitGroup.zig");
22
23
-pub const use_pthreads = native_os != .windows and native_os != .wasi and builtin.link_libc;
+pub const use_pthreads = native_os != .windows and native_os != .wasi and builtin.link_libc and !builtin.single_threaded;
24
25
/// A thread-safe logical boolean value which can be `set` and `unset`.
26
///
0 commit comments