hi_tde_end_job

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Submits a created TDE job.

Restrictions

  • Before calling this API, call hi_tde_open to open the TDE device and call hi_tde_begin_job to obtain a valid job handle.
  • After a job is submitted, the handle corresponding to the job becomes invalid. If the job is submitted again, the error code HI_ERR_TDE_INVALID_HANDLE is displayed.
  • This API does not support multiple processes.

Prototype

hi_s32 hi_tde_end_job(hi_s32 handle, hi_bool is_sync, hi_bool is_block, hi_u32 time_out);

Parameters

Parameter

Input/Output

Description

handle

Input

Handle to a TDE job.

is_sync

Input

Synchronization flag. This parameter is reserved and is fixed at HI_FALSE.

is_block

Input

Block flag.

  • HI_TRUE: blocking mode. A code is returned after a submitted TDE job is complete or a specified timeout period elapses.
  • HI_FALSE: non-blocking mode. A value is returned directly. However, this API must be used together with hi_tde_wait_for_done or hi_tde_wait_all_done.

time_out

Input

Timeout interval (ms).

If is_block is set to block, you can set this parameter to specify the timeout interval. If is_block is set to non-block, this parameter is invalid.

Returns