[][src]Function sdl2_sys::SDL_AtomicTryLock

pub unsafe extern "C" fn SDL_AtomicTryLock(lock: *mut SDL_SpinLock) -> SDL_bool

\brief Try to lock a spin lock by setting it to a non-zero value.

\param lock Points to the lock.

\return SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already held.