---
name: "SDL_ThreadFunction"
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_ThreadFunction"
---

# SDL\_ThreadFunction(3type)

The function passed to SDL\_CreateThread () as the new thread's entry point.

## NAME

SDL\_ThreadFunction - The function passed to  **SDL\_CreateThread** () as the new thread's entry point.

## HEADER FILE

Defined in SDL3/SDL\_thread.h

## SYNOPSIS

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

**typedef int (SDLCALL \*SDL\_ThreadFunction) (void \*data);**

## FUNCTION PARAMETERS

- *data*

  what was passed as **data** to  **SDL\_CreateThread** ().

## RETURN VALUE

Returns a value that can be reported through

**SDL\_WaitThread** ().

## AVAILABILITY

This datatype is available since SDL 3.2.0.
