sdlSignalSemaphore function

void sdlSignalSemaphore(
  1. Pointer<SdlSemaphore> sem
)

Atomically increment a semaphore's value and wake waiting threads.

\param sem the semaphore to increment.

\since This function is available since SDL 3.1.3.

\sa SDL_TryWaitSemaphore \sa SDL_WaitSemaphore \sa SDL_WaitSemaphoreTimeout

extern SDL_DECLSPEC void SDLCALL SDL_SignalSemaphore(SDL_Semaphore *sem)

Implementation

void sdlSignalSemaphore(Pointer<SdlSemaphore> sem) {
  final sdlSignalSemaphoreLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlSemaphore> sem),
      void Function(Pointer<SdlSemaphore> sem)>('SDL_SignalSemaphore');
  return sdlSignalSemaphoreLookupFunction(sem);
}