DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetSemaphoreValue.3.en
SDL_GetSemaphoreValue(3) SDL3 FUNCTIONS SDL_GetSemaphoreValue(3)

SDL_GetSemaphoreValue - Get the current value of a semaphore.

Defined in SDL3/SDL_mutex.h

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

the semaphore to query.

( Uint32 ) Returns the current value of the semaphore.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer