SDL_UnlockSpinlock - Man Page
Unlock a spin lock by setting it to 0.
Synopsis
#include <SDL3/SDL_atomic.h> void SDL_UnlockSpinlock(SDL_SpinLock *lock);
Description
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!
Function Parameters
- lock
a pointer to a lock variable.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_LockSpinlock(3), SDL_TryLockSpinlock(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS