sdlSignalCondition function

void sdlSignalCondition(
  1. Pointer<SdlCondition> cond
)

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

\param cond the condition variable to signal.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_BroadcastCondition \sa SDL_WaitCondition \sa SDL_WaitConditionTimeout

extern SDL_DECLSPEC void SDLCALL SDL_SignalCondition(SDL_Condition *cond)

Implementation

void sdlSignalCondition(Pointer<SdlCondition> cond) {
  final sdlSignalConditionLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlCondition> cond),
      void Function(Pointer<SdlCondition> cond)>('SDL_SignalCondition');
  return sdlSignalConditionLookupFunction(cond);
}