Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

getCpuCount

Returns the platforms view on the number of logical CPU cores available.

Returned value guaranteed to be >= 1.

Thread.getCpuCount
pub fn getCpuCount() CpuCountError!usize

File

lib/std/Thread.zig:293

Code

pub fn getCpuCount() CpuCountError!usize {
    return try Impl.getCpuCount();
}