sdlDestroySemaphore function
Destroy a semaphore.
It is not safe to destroy a semaphore if there are threads currently waiting on it.
\param sem the semaphore to destroy
\since This function is available since SDL 2.0.0.
\sa SDL_CreateSemaphore \sa SDL_SemPost \sa SDL_SemTryWait \sa SDL_SemValue \sa SDL_SemWait \sa SDL_SemWaitTimeout
extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem * sem)
Implementation
void sdlDestroySemaphore(Pointer<SdlSem> sem) {
final sdlDestroySemaphoreLookupFunction = libSdl2.lookupFunction<
Void Function(Pointer<SdlSem> sem),
void Function(Pointer<SdlSem> sem)>('SDL_DestroySemaphore');
return sdlDestroySemaphoreLookupFunction(sem);
}