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_GetSemaphoreValue - Get the current value of a semaphore.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                           SDL_GetSemaphoreValue(3)

Function Parameters

sem    the semaphore to query.

Header File

       Defined in SDL3/SDL_mutex.h

Name

       SDL_GetSemaphoreValue - Get the current value of a semaphore.

Return Value

       ( Uint32 ) Returns the current value of the semaphore.

Synopsis

#include"SDL3/SDL.h"Uint32SDL_GetSemaphoreValue(SDL_Semaphore*sem);

See Also