SDL_UnlockSpinlock

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!***

extern (C) nothrow @nogc extern
void
SDL_UnlockSpinlock

Parameters

lock SDL_SpinLock*

a pointer to a lock variable.

See Also

SDL_LockSpinlock SDL_TryLockSpinlock

Threadsafety: It is safe to call this function from any thread.

Meta

History

Available since SDL 3.2.0.