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§
pub enum OrtCustomCreateThreadFn {
None,
Some(unsafe extern "C" fn(*mut c_void, Option<unsafe extern "C" fn(*mut c_void)>, *mut c_void) -> *const OrtCustomHandleType),
}