SDL_GetNumLogicalCPUCores(3)
okay bestie, welcome to the SDL_GetNumLogicalCPUCores(3) page β yes, that's the manual name, and we're deep in SDL3 FUNCTIONS land. This one is all about counting logical CPU cores. π
β¨
πΈ NAME πΈ
SDL_GetNumLogicalCPUCores β get the number of logical CPU cores available. π§
π SYNOPSIS π
#include <SDL3/SDL_cpuinfo.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. No cap, that's just the tea. π
π§΅ THREAD SAFETY π§΅
It is safe to call this function from any thread. So yes bestie, go off in whatever thread you want. π«Ά
ποΈ AVAILABILITY ποΈ
This function is available since SDL 3.2.0. Periodt. β¨
kisses from the Simple Directmedia Layer girlies π version SDL 3.4.18, and this was the SDL_GetNumLogicalCPUCores(3) page. bye bestie! ππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms