std.sys.cpu_cores
Show source codeHide source code
fn pub cpu_cores -> Int {
(_INKO.state as Int + 40 as Pointer[Int64]).0 as Int
}
fn pub static cpu_cores -> Int
Returns the number of available CPU cores of the current system.
This returns the number of logical cores, with a minimum value of 1.