SDL_GetAtomicU32(3)
π SDL_GetAtomicU32(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_GetAtomicU32 π«Ά
β¨ NAME β¨
SDL_GetAtomicU32 β get the value of an atomic variable π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_atomic.h>
Uint32 SDL_GetAtomicU32(SDL_AtomicU32 *a);
like. that's it. that's the whole vibe. one function, one job π
π¦ DESCRIPTION π¦
Note: if you don't know what this function is for, you shouldn't use it! π
no fr fr, that's not me being shady, that's literally what the manpage says. if atomics aren't already your thing, this is your sign to back away slowly and go read about something else, bestie π
π FUNCTION PARAMETERS π
aβ a pointer to anSDL_AtomicU32variable. just hand it the address and it'll do its little thing β¨
π RETURN VALUE π
it returns the current value of an atomic variable. no cap, that's the whole return story π
β THREAD SAFETY β
it is safe to call this function from any thread. any thread!! go wild, every thread is invited to the party ππ§
π AVAILABILITY π
this function is available since SDL 3.2.0. iconic behavior honestly π
πΈ SEE ALSO πΈ
SDL_SetAtomicU32(3)β the other half of the duo, go say hi π
mwah π that's the page!! brought to you by Simple Directmedia Layer, running SDL 3.4.18, and yes SDL_GetAtomicU32(3) really is the name up top and the name down here too. stay atomic, stay slay πβ¨π¦
π¦ 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