SDL_SetAtomicU32 - Set an atomic variable to a value.
Contents
Availability
This function is available since SDL 3.2.0.
Description
This function also acts as a full memory barrier. Note:Ifyoudon'tknowwhatthisfunctionisfor,youshouldn'tuse it!
Function Parameters
a a pointer to an SDL_AtomicU32
variable to be modified.
v the desired value.
Header File
Defined in SDL3/SDL_atomic.h
Name
SDL_SetAtomicU32 - Set an atomic variable to a value.
Return Value
( Uint32 ) Returns the previous value of the atomic variable.
See Also
•(3), SDL_GetAtomicU32(3) Simple Directmedia Layer SDL 3.2.10 SDL_SetAtomicU32(3)
Synopsis
#include"SDL3/SDL.h"Uint32SDL_SetAtomicU32(SDL_AtomicU32*a,Uint32v);
Thread Safety
It is safe to call this function from any thread.
