ImportSemaphore property

\brief Import an external semaphore.

The EP creates a derived type of OrtExternalSemaphoreHandle and returns a pointer to the base. EP is responsible for the lifetime of the handle (release via ReleaseSemaphore).

\paramin this_ptr Pointer to the OrtExternalResourceImporterImpl instance. \paramin desc Descriptor containing the external semaphore handle and type. \paramout out_handle Output parameter set to the created OrtExternalSemaphoreHandle (EP's derived type).

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtExternalResourceImporterImpl> this_ptr,
      ffi.Pointer<OrtExternalSemaphoreDescriptor> desc,
      ffi.Pointer<ffi.Pointer<OrtExternalSemaphoreHandle>> out_handle,
    )
  >
>
ImportSemaphore;