###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) # SDL_ThreadFunction The function passed to [SDL_CreateThread](SDL_CreateThread)() as the new thread's entry point. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_thread.h) ## Syntax ```c typedef int (SDLCALL * SDL_ThreadFunction) (void *data); ``` ## Function Parameters | | | | -------- | -------------------------------------------------------------------- | | **data** | what was passed as `data` to [SDL_CreateThread](SDL_CreateThread)(). | ## Return Value Returns a value that can be reported through [SDL_WaitThread](SDL_WaitThread)(). ## Version This datatype is available since SDL 3.1.3. ---- [CategoryAPI](CategoryAPI), [CategoryAPIDatatype](CategoryAPIDatatype), [CategoryThread](CategoryThread)