SetGlobalSpinControl property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtThreadingOptions> tp_options, Int allow_spinning)> >
SetGlobalSpinControl
getter/setter pair
\brief Set global spin control options
This will configure the global thread pool options to be used in the call to OrtApi::CreateEnvWithGlobalThreadPools. Allow spinning of thread pools when their queues are empty. This will set the value for both inter_op and intra_op threadpools.
\paramin tp_options
\paramin allow_spinning Valid values are 0 or 1.
0 = It won't spin (recommended if CPU usage is high)
1 = Threadpool will spin to wait for queue to become non-empty
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtThreadingOptions> tp_options,
ffi.Int allow_spinning,
)
>
>
SetGlobalSpinControl;