logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetNumLogicalCPUCores - Get the number of logical CPU cores available.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                       SDL_GetNumLogicalCPUCores(3)

Header File

       Defined in SDL3/SDL_cpuinfo.h

Name

       SDL_GetNumLogicalCPUCores - Get the number of logical CPU cores available.

Return Value

       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.

Synopsis

#include"SDL3/SDL.h"intSDL_GetNumLogicalCPUCores(void);

Thread Safety

       It is safe to call this function from any thread.

See Also