sdlGetSemaphoreValue function mutex
Get the current value of a semaphore.
\param sem the semaphore to query. \returns the current value of the semaphore.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC Uint32 SDLCALL SDL_GetSemaphoreValue(SDL_Semaphore *sem)
Implementation
int sdlGetSemaphoreValue(Pointer<SdlSemaphore> sem) {
final sdlGetSemaphoreValueLookupFunction = _libSdl
.lookupFunction<
Uint32 Function(Pointer<SdlSemaphore> sem),
int Function(Pointer<SdlSemaphore> sem)
>('SDL_GetSemaphoreValue');
return sdlGetSemaphoreValueLookupFunction(sem);
}