WaitSemaphore property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtExternalResourceImporter> importer, Pointer<OrtExternalSemaphoreHandle> semaphore_handle, Pointer<OrtSyncStream> stream, Uint64 value)> >
WaitSemaphore
getter/setter pair
\brief Wait on an external semaphore on the EP's stream.
Inserts a wait operation into the EP's stream that blocks until the semaphore reaches the specified value. This is used to synchronize with external GPU work (e.g., D3D12 timeline fence).
\paramin importer The OrtExternalResourceImporter instance.
\paramin semaphore_handle The imported external semaphore.
\paramin stream The OrtSyncStream to wait on.
\paramin value The fence/semaphore value to wait for.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.24.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtExternalResourceImporter> importer,
ffi.Pointer<OrtExternalSemaphoreHandle> semaphore_handle,
ffi.Pointer<OrtSyncStream> stream,
ffi.Uint64 value,
)
>
>
WaitSemaphore;