SDL_GetNumLogicalCPUCores

Get the number of logical CPU cores available.

extern (C) nothrow @nogc extern
int
SDL_GetNumLogicalCPUCores
()

Return Value

Type: int

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.

Threadsafety: It is safe to call this function from any thread.

Meta