Function sdl2_sys::SDL_CreateThread

source ·
pub unsafe extern "C" fn SDL_CreateThread(
    fn_: SDL_ThreadFunction,
    name: *const c_char,
    data: *mut c_void
) -> *mut SDL_Thread
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