aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-07-17 20:26:07 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-10-29 06:20:48 -0700
commitf76259772438a7fa4fafa59082cd5fe05dfbed44 (patch)
tree9c652c785bf1fcf8bb1642a128ee5d32e0bd4536 /lib/std/Thread.zig
parentec3e4c00c3a0b480cb9b6cfe6740052ce1084a94 (diff)
downloadzig-f76259772438a7fa4fafa59082cd5fe05dfbed44.tar.gz
zig-f76259772438a7fa4fafa59082cd5fe05dfbed44.zip
std.Io: add asyncConcurrent and asyncParallel
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index f587b15f86..3d78596f84 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -385,6 +385,8 @@ pub const CpuCountError = error{
};
/// Returns the platforms view on the number of logical CPU cores available.
+///
+/// Returned value guaranteed to be >= 1.
pub fn getCpuCount() CpuCountError!usize {
return try Impl.getCpuCount();
}