pub type SDL_ThreadFunction = Option<unsafe extern "C" fn(data: *mut c_void) -> c_int>;Expand description
The function passed to SDL_CreateThread() as the new thread’s entry point.
§Parameters
data: what was passed asdatatoSDL_CreateThread().
§Return value
Returns a value that can be reported through SDL_WaitThread().
§Availability
This datatype is available since SDL 3.2.0.
Aliased Type§
pub enum SDL_ThreadFunction {
None,
Some(unsafe extern "C" fn(*mut c_void) -> i32),
}