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_UnlockMutex - Unlock the mutex.

Availability

       This function is available since SDL 3.2.0.

Description

       It  is  legal for the owning thread to lock an already-locked mutex. It must unlock it the same number of
       times before it is actually made available for other threads in the system (this is known as a "recursive
       mutex").

       It is illegal to unlock a mutex that has not been locked by the current thread, and doing so  results  in
       undefined behavior.

Function Parameters

mutex  the mutex to unlock.

Header File

       Defined in SDL3/SDL_mutex.h

Name

       SDL_UnlockMutex - Unlock the mutex.

See Also

(3), SDL_LockMutex(3), (3), SDL_TryLockMutex(3)

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_UnlockMutex(3)

Synopsis

#include"SDL3/SDL.h"voidSDL_UnlockMutex(SDL_Mutex*mutex);

See Also