Try to 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!***
a pointer to a lock variable.
true if the lock succeeded, false if the lock is already held.
SDL_LockSpinlock SDL_UnlockSpinlock
Threadsafety: It is safe to call this function from any thread.
See Implementation
Available since SDL 3.2.0.
Try to 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!***