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

# SDL\_GetThreadState(3)

Get the current state of a thread.

## NAME

SDL\_GetThreadState - Get the current state of a thread.

## HEADER FILE

Defined in SDL3/SDL\_thread.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_ThreadState SDL\_GetThreadState(SDL\_Thread \*thread);**

## FUNCTION PARAMETERS

- *thread*

  the thread to query.

## RETURN VALUE

( **SDL\_ThreadState** ) Returns the current state of a thread, or  **SDL\_THREAD\_UNKNOWN**\
  if the thread isn't valid.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_ThreadState**(3type)](/SDL_ThreadState/3type.md)
