sdlSemValue function
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 2.0.0.
\sa SDL_CreateSemaphore
extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem * sem)
Implementation
int sdlSemValue(Pointer<SdlSem> sem) {
final sdlSemValueLookupFunction = libSdl2.lookupFunction<
Uint32 Function(Pointer<SdlSem> sem),
int Function(Pointer<SdlSem> sem)>('SDL_SemValue');
return sdlSemValueLookupFunction(sem);
}