SDL_AddAtomicInt

Add to an atomic variable.

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!***

extern (C) nothrow @nogc extern
int
SDL_AddAtomicInt

Parameters

a SDL_AtomicInt*

a pointer to an SDL_AtomicInt variable to be modified.

v int

the desired value to add.

Return Value

Type: int

the previous value of the atomic variable.

See Also

SDL_AtomicDecRef SDL_AtomicIncRef

Threadsafety: It is safe to call this function from any thread.

Meta

History

Available since SDL 3.2.0.