Function SDL_AtomicLock
pub unsafe extern "C" fn SDL_AtomicLock(lock: *mut i32)
Available on crate feature
dep_sdl2
only.Expand description
Lock a spin lock by setting it to a non-zero value.
Please note that spinlocks are dangerous if you don’t know what you’re doing. Please be careful using any sort of spinlock!
\param lock a pointer to a lock variable
\since This function is available since SDL 2.0.0.
\sa SDL_AtomicTryLock \sa SDL_AtomicUnlock