[][src]Function sdl2_sys::SDL_AtomicCAS

pub unsafe extern "C" fn SDL_AtomicCAS(
    a: *mut SDL_atomic_t,
    oldval: c_int,
    newval: c_int
) -> SDL_bool

\brief Set an atomic variable to a new value if it is currently an old value.

\return SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.

\note If you don't know what this function is for, you shouldn't use it!