pub type OrtCustomCreateThreadFn = Option<unsafe extern "C" fn(ort_custom_thread_creation_options: *mut c_void, ort_thread_worker_fn: OrtThreadWorkerFn, ort_worker_fn_param: *mut c_void) -> OrtCustomThreadHandle>;
Expand description

\brief Ort custom thread creation function

The function should return a thread handle to be used in onnxruntime thread pools Onnxruntime will throw exception on return value of nullptr or 0, indicating that the function failed to create a thread

Aliased Type§

enum OrtCustomCreateThreadFn {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: Option<unsafe extern "C" fn(_: *mut c_void)>, _: *mut c_void) -> *const OrtCustomHandleType),
}

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)>, _: *mut c_void) -> *const OrtCustomHandleType)

Some value of type T.