Get the current value of a semaphore.
Defined in <SDL3/SDL_mutex.h>
Uint32 SDL_GetSemaphoreValue(SDL_Semaphore *sem);
SDL_Semaphore * | sem | the semaphore to query. |
(Uint32) Returns the current value of the semaphore.
This function is available since SDL 3.1.3.