Function sdl2_sys::SDL_AtomicUnlock
source · pub unsafe extern "C" fn SDL_AtomicUnlock(lock: *mut SDL_SpinLock)
Expand description
Unlock a spin lock by setting it to 0.
Always returns immediately.
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_AtomicLock \sa SDL_AtomicTryLock