sdlGetNumLogicalCpuCores function
Get the number of logical 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.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_GetNumLogicalCPUCores(void)
Implementation
int sdlGetNumLogicalCpuCores() {
final sdlGetNumLogicalCpuCoresLookupFunction =
libSdl3.lookupFunction<Int32 Function(), int Function()>(
'SDL_GetNumLogicalCPUCores');
return sdlGetNumLogicalCpuCoresLookupFunction();
}