Function sdl2_sys::SDL_AtomicAdd
source · pub unsafe extern "C" fn SDL_AtomicAdd(
a: *mut SDL_atomic_t,
v: c_int,
) -> c_int
Expand description
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!
\param a a pointer to an SDL_atomic_t variable to be modified \param v the desired value to add \returns the previous value of the atomic variable.
\since This function is available since SDL 2.0.2.
\sa SDL_AtomicDecRef \sa SDL_AtomicIncRef