Skip to main content

aic_processor_context_create

Function aic_processor_context_create 

Source
pub unsafe extern "C" fn aic_processor_context_create(
    context: *mut *mut AicProcessorContext,
    processor: *const AicProcessor,
) -> Type
Expand description

Creates a processor context handle for thread-safe control APIs.

Use the returned handle to reset the processor, parameter APIs, and other thread-safe functions that operate on AicProcessorContext.

§Parameters

  • context: Receives the handle to the processor context. Must not be NULL.
  • processor: Processor instance. Must not be NULL.

§Returns

  • AIC_ERROR_CODE_SUCCESS: Context handle created successfully
  • AIC_ERROR_CODE_NULL_POINTER: processor or context is NULL

§Safety

  • Thread-safe: Can be called from any thread.