SDL_GetAtomicPointer(3)

✨ SDL_GetAtomicPointer(3) ✨

okay so bestie, welcome to the SDL_GetAtomicPointer(3) page, straight from the SDL3 FUNCTIONS section. this one is short and spicy, so let's get into it πŸ’…


πŸ’– NAME πŸ’–

SDL_GetAtomicPointer β€” get the value of a pointer atomically.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_atomic.h>

void * SDL_GetAtomicPointer(void **a);

🌸 DESCRIPTION 🌸

Note: If you don't know what this function is for, you shouldn't use it!

okay so literally the manpage said it first: if you don't know what this function is for, you shouldn't use it! no cap, this is not a "vibe check and figure it out later" situation. πŸ™ˆ


πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • a β€” a pointer to a pointer.

⭐ RETURN VALUE ⭐

Returns the current value of a pointer.


πŸ’œ THREAD SAFETY πŸ’œ

It is safe to call this function from any thread. periodt, she's thread-safe πŸ’…


🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0.


πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this has been a Simple Directmedia Layer production, version SDL 3.4.18, dated/footered SDL_GetAtomicPointer(3). byeeee 🫢

πŸ“¦ where this page comes from