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

\brief Thread work loop function

Onnxruntime will provide the working loop on custom thread creation Argument is an onnxruntime built-in type which will be provided when thread pool calls OrtCustomCreateThreadFn

Aliased Type§

enum OrtThreadWorkerFn {
    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.