Man page - sdl_addatomicint(3)

Packages contas this manual

Manual

SDL_AddAtomicInt(3) SDL3 FUNCTIONS SDL_AddAtomicInt(3)

SDL_AddAtomicInt - Add to an atomic variable.

Defined in SDL3/SDL_atomic.h

#include "SDL3/SDL.h"
int SDL_AddAtomicInt(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 to add.

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_AtomicDecRef(3), (3), SDL_AtomicIncRef(3)

SDL 3.2.10 Simple Directmedia Layer