Type Alias sdl2_sys::SDL_ThreadFunction

source ·
pub type SDL_ThreadFunction = Option<unsafe extern "C" fn(data: *mut c_void) -> c_int>;
Expand description

The function passed to SDL_CreateThread().

\param data what was passed as data to SDL_CreateThread() \returns a value that can be reported through SDL_WaitThread().

Aliased Type§

enum SDL_ThreadFunction {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

Some value of type T.