blosc_threads_callback

Type Alias blosc_threads_callback 

Source
pub type blosc_threads_callback = Option<unsafe extern "C" fn(callback_data: *mut c_void, dojob: Option<unsafe extern "C" fn(arg1: *mut c_void)>, numjobs: c_int, jobdata_elsize: usize, jobdata: *mut c_void)>;
Expand description

Pointer to a callback function that executes dojob(jobdata + i*jobdata_elsize) for i = 0 to numjobs-1, possibly in parallel threads (but not returning until all dojob calls have returned). This allows the caller to provide a custom threading backend as an alternative to the default Blosc-managed threads. callback_data is passed through from blosc2_set_threads_callback.

Aliased Type§

pub enum blosc_threads_callback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, Option<unsafe extern "C" fn(*mut c_void)>, i32, usize, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, Option<unsafe extern "C" fn(*mut c_void)>, i32, usize, *mut c_void))

Some value of type T.