sdlGetThreadState function

int sdlGetThreadState(
  1. Pointer<SdlThread> thread
)

Get the current state of a thread.

\param thread the thread to query. \returns the current state of a thread, or SDL_THREAD_UNKNOWN if the thread isn't valid.

\since This function is available since SDL 3.2.0.

\sa SDL_ThreadState

extern SDL_DECLSPEC SDL_ThreadState SDLCALL SDL_GetThreadState(SDL_Thread *thread)

Implementation

int sdlGetThreadState(Pointer<SdlThread> thread) {
  final sdlGetThreadStateLookupFunction = libSdl3.lookupFunction<
      Int32 Function(Pointer<SdlThread> thread),
      int Function(Pointer<SdlThread> thread)>('SDL_GetThreadState');
  return sdlGetThreadStateLookupFunction(thread);
}