table of contents
other versions
- bookworm 1.2.15+dfsg2-8
- experimental 3.1.0+ds-1
SDL_CreateThread(3) | SDL3 FUNCTIONS | SDL_CreateThread(3) |
NAME¶
SDL_CreateThread - Create a new thread with a default stack size.
SYNOPSIS¶
#include "SDL3/SDL.h"
SDL_Thread * SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data);
DESCRIPTION¶
This is equivalent to calling:
c SDL_CreateThreadWithStackSize(fn, name, 0, data);
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns an opaque pointer to the new thread object on success, NULL if the new thread could not be created; call SDL_GetError () for more information.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL 3.1.0 | SDL |