Man page - sdl_getnumlogicalcpucores(3)

Packages contains this manual

Manual

SDL_GetNumLogicalCPUCores

NAME
HEADER FILE
SYNOPSIS
RETURN VALUE
THREAD SAFETY
AVAILABILITY

NAME

SDL_GetNumLogicalCPUCores - Get the number of logical CPU cores available.

HEADER FILE

Defined in SDL3/SDL_cpuinfo.h

SYNOPSIS

#include "SDL3/SDL.h"

int SDL_GetNumLogicalCPUCores(void);

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.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.2.0.