logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_UnlockSpinlock - Unlock a spin lock by setting it to 0.

Availability

       This function is available since SDL 3.2.0.

Description

       Always  returns  immediately.   Pleasenotethatspinlocksaredangerousifyoudon'tknowwhatyou're
       doing. Please be careful using any sort of spinlock!

Function Parameters

lock   a pointer to a lock variable.

Header File

       Defined in SDL3/SDL_atomic.h

Name

       SDL_UnlockSpinlock - Unlock a spin lock by setting it to 0.

See Also

(3), SDL_LockSpinlock(3), (3), SDL_TryLockSpinlock(3)

Simple Directmedia Layer                           SDL 3.2.10                              SDL_UnlockSpinlock(3)

Synopsis

#include"SDL3/SDL.h"voidSDL_UnlockSpinlock(SDL_SpinLock*lock);

Thread Safety

       It is safe to call this function from any thread.

See Also