table of contents
SDL_CreateThread(3) | SDL3 FUNCTIONS | SDL_CreateThread(3) |
NAME¶
SDL_CreateThread - Create a new thread with a default stack size.
HEADER FILE¶
Defined in SDL3/SDL_thread.h
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.2 | Simple Directmedia Layer |