SDL_ThreadState - The SDL thread state.
Contents
Availability
This enum is available since SDL 3.2.0.
Description
The current state of a thread can be checked by calling SDL_GetThreadState.
Name
SDL_ThreadState - The SDL thread state.
See Also
SDL_GetThreadState(3) Simple Directmedia Layer SDL 3.2.20 SDL_ThreadState(3type)
Synopsis
#include<SDL3/SDL_thread.h>typedefenumSDL_ThreadState{SDL_THREAD_UNKNOWN,/**<Thethreadisnotvalid*/SDL_THREAD_ALIVE,/**<Thethreadiscurrentlyrunning*/SDL_THREAD_DETACHED,/**<Thethreadisdetachedandcan'tbewaitedon*/SDL_THREAD_COMPLETE/**<ThethreadhasfinishedandshouldbecleanedupwithSDL_WaitThread()*/}SDL_ThreadState;