SDL_TLSDestructorCallback

Type Alias SDL_TLSDestructorCallback 

Source
pub type SDL_TLSDestructorCallback = Option<unsafe extern "C" fn(value: *mut c_void)>;
Expand description

The callback used to cleanup data passed to SDL_SetTLS.

This is called when a thread exits, to allow an app to free any resources.

§Parameters

  • value: a pointer previously handed to SDL_SetTLS.

§Availability

This datatype is available since SDL 3.2.0.

§See also

Aliased Type§

pub enum SDL_TLSDestructorCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void))

Some value of type T.