Class OrtCustomCreateThreadFn
java.lang.Object
smile.onnx.foreign.OrtCustomCreateThreadFn
typedef OrtCustomThreadHandle (*OrtCustomCreateThreadFn)(void *, OrtThreadWorkerFn, void *)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe function pointer signature, expressed as a functional interface -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(OrtCustomCreateThreadFn.Function fi, Arena arena) Allocates a new upcall stub, whose implementation is defined byfi.static FunctionDescriptorThe descriptor of this function pointerstatic MemorySegmentinvoke(MemorySegment funcPtr, MemorySegment ort_custom_thread_creation_options, MemorySegment ort_thread_worker_fn, MemorySegment ort_worker_fn_param) Invoke the upcall stubfuncPtr, with given parameters
-
Method Details
-
descriptor
The descriptor of this function pointer -
allocate
Allocates a new upcall stub, whose implementation is defined byfi. The lifetime of the returned segment is managed byarena -
invoke
public static MemorySegment invoke(MemorySegment funcPtr, MemorySegment ort_custom_thread_creation_options, MemorySegment ort_thread_worker_fn, MemorySegment ort_worker_fn_param) Invoke the upcall stubfuncPtr, with given parameters
-