DOKK / manpages / debian 13 / libsdl3-doc / SDL_SetAtomicInt.3.en
SDL_SetAtomicInt(3) SDL3 FUNCTIONS SDL_SetAtomicInt(3)

SDL_SetAtomicInt - Set an atomic variable to a value.

Defined in SDL3/SDL_atomic.h

#include "SDL3/SDL.h"
int SDL_SetAtomicInt(SDL_AtomicInt *a, int v);

This function also acts as a full memory barrier. Note: If you don't know what this function is for, you shouldn't use it!

a pointer to an SDL_AtomicInt
variable to be modified.
the desired value.

Returns the previous value of the atomic variable.

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

(3), SDL_GetAtomicInt(3)

SDL 3.2.10 Simple Directmedia Layer