Function SDL_GetCPUCount

pub unsafe extern "C" fn SDL_GetCPUCount() -> i32
Available on crate feature dep_sdl2 only.
Expand description

Get the number of CPU cores available.

\returns the total number of logical CPU cores. On CPUs that include technologies such as hyperthreading, the number of logical cores may be more than the number of physical cores.

\since This function is available since SDL 2.0.0.