Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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