Function SDL_CreateThreadWithPropertiesRuntime

pub unsafe extern "C" fn SDL_CreateThreadWithPropertiesRuntime(
    props: u32,
    pfnBeginThread: Option<unsafe extern "C" fn()>,
    pfnEndThread: Option<unsafe extern "C" fn()>,
) -> *mut SDL_Thread
Available on crate feature dep_sdl3 only.
Expand description

The actual entry point for SDL_CreateThreadWithProperties.

§Parameters

  • props: the properties to use
  • pfnBeginThread: the C runtime’s _beginthreadex (or whatnot). Can be NULL.
  • pfnEndThread: the C runtime’s _endthreadex (or whatnot). Can be NULL.

§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.2.0.