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