Function SDL_CreateThread
pub unsafe extern "C" fn SDL_CreateThread(
fn_: Option<unsafe extern "C" fn(_: *mut c_void) -> i32>,
name: *const i8,
data: *mut c_void,
) -> *mut SDL_Thread
Available on crate feature
dep_sdl2
only.Expand description
Create a new thread with a default stack size.
This is equivalent to calling:
SDL_CreateThreadWithStackSize(fn, name, 0, data);
\param fn the SDL_ThreadFunction function to call in the new thread
\param name the name of the thread
\param 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.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateThreadWithStackSize \sa SDL_WaitThread