Create a new thread with a default stack size.
Defined in SDL_thread.h, but apps should only #include "SDL.h"
!
extern DECLSPEC SDL_Thread *SDLCALL
const char *name, void *data); SDL_CreateThread(SDL_ThreadFunction fn,
fn | the SDL_ThreadFunction function to call in the new thread |
name | the name of the thread |
data | a pointer that is passed to fn |
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.
This is equivalent to calling:
0, data); SDL_CreateThreadWithStackSize(fn, name,
This function is available since SDL 2.0.0.
CategoryAPI, CategoryAPIFunction