Class OrtThreadWorkerFn

java.lang.Object
smile.onnx.foreign.OrtThreadWorkerFn

public final class OrtThreadWorkerFn extends Object
typedef void (*OrtThreadWorkerFn)(void *)
  • Method Details

    • descriptor

      public static FunctionDescriptor descriptor()
      The descriptor of this function pointer
    • allocate

      public static MemorySegment allocate(OrtThreadWorkerFn.Function fi, Arena arena)
      Allocates a new upcall stub, whose implementation is defined by fi. The lifetime of the returned segment is managed by arena
    • invoke

      public static void invoke(MemorySegment funcPtr, MemorySegment ort_worker_fn_param)
      Invoke the upcall stub funcPtr, with given parameters