---
name: "SDL_ThreadState"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_ThreadState"
---

# SDL\_ThreadState(3type)

The SDL thread state.

## NAME

SDL\_ThreadState - The SDL thread state.

## HEADER FILE

Defined in SDL3/SDL\_thread.h

## SYNOPSIS

```
#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;**

## DESCRIPTION

The current state of a thread can be checked by calling

**SDL\_GetThreadState** .

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetThreadState**(3)](/SDL_GetThreadState/3.md)
