sdlDestroySemaphore function

void sdlDestroySemaphore(
  1. Pointer<SdlSemaphore> sem
)

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 3.1.3.

\sa SDL_CreateSemaphore

extern SDL_DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_Semaphore *sem)

Implementation

void sdlDestroySemaphore(Pointer<SdlSemaphore> sem) {
  final sdlDestroySemaphoreLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlSemaphore> sem),
      void Function(Pointer<SdlSemaphore> sem)>('SDL_DestroySemaphore');
  return sdlDestroySemaphoreLookupFunction(sem);
}