Function sdl2_sys::SDL_AtomicSet
source · pub unsafe extern "C" fn SDL_AtomicSet(
a: *mut SDL_atomic_t,
v: c_int,
) -> c_int
Expand description
Set an atomic variable to a value.
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 \returns the previous value of the atomic variable.
\since This function is available since SDL 2.0.2.
\sa SDL_AtomicGet