Function sdl2_sys::SDL_GetCPUCount

source ·
pub unsafe extern "C" fn SDL_GetCPUCount() -> c_int
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.