SDL_ThreadState(3type)

SDL_ThreadState3type

The sdl thread state.

Usage

#include "SDL3/SDL.h"

typedef enum SDL_ThreadState { SDL_THREAD_UNKNOWN, /**< The thread is not valid */ SDL_THREAD_ALIVE, /**< The thread is currently running */ SDL_THREAD_DETACHED, /**< The thread is detached and can't be waited on */ SDL_THREAD_COMPLETE /**< The thread has finished and should be cleaned up with SDL_WaitThread() */ } SDL_ThreadState;

Header file

Defined in SDL3/SDL_thread.h

Overview

The current state of a thread can be checked by calling

SDL_GetThreadState .

Availability

This enum is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.