diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-17 20:26:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:48 -0700 |
| commit | f76259772438a7fa4fafa59082cd5fe05dfbed44 (patch) | |
| tree | 9c652c785bf1fcf8bb1642a128ee5d32e0bd4536 /lib/std/Thread.zig | |
| parent | ec3e4c00c3a0b480cb9b6cfe6740052ce1084a94 (diff) | |
| download | zig-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.zig | 2 |
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(); } |
