Function sdl2_sys::SDL_AtomicCASPtr

source ·
pub unsafe extern "C" fn SDL_AtomicCASPtr(
    a: *mut *mut c_void,
    oldval: *mut c_void,
    newval: *mut c_void
) -> SDL_bool
Expand description

Set a pointer to a new value if it is currently an old value.

Note: If you don’t know what this function is for, you shouldn’t use it!

\param a a pointer to a pointer \param oldval the old pointer value \param newval the new pointer value \returns SDL_TRUE if the pointer was set, SDL_FALSE otherwise.

\since This function is available since SDL 2.0.0.

\sa SDL_AtomicCAS \sa SDL_AtomicGetPtr \sa SDL_AtomicSetPtr