sdlCondSignal function

int sdlCondSignal(
  1. Pointer<SdlCond> cond
)

Restart one of the threads that are waiting on the condition variable.

\param cond the condition variable to signal \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_CondBroadcast \sa SDL_CondWait \sa SDL_CondWaitTimeout \sa SDL_CreateCond \sa SDL_DestroyCond

extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond * cond)

Implementation

int sdlCondSignal(Pointer<SdlCond> cond) {
  final sdlCondSignalLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlCond> cond),
      int Function(Pointer<SdlCond> cond)>('SDL_CondSignal');
  return sdlCondSignalLookupFunction(cond);
}