alf_task_finalize

NAME

alf_task_finalize - Finalizes the work block queue of the specified task.

SYNOPSIS

int alf_task_finalize (alf_task_handle_t task_handle)

Parameters  
task_handle [IN] The task handle that is returned by the alf_create_task API

DESCRIPTION

This function finalizes the task. After the task has been finalized, future calls to alf_wb_create and alf_task_depends_on and alf_task_event_handler_register return errors.
Note: Task finalization is a compulsory condition for a task to run and complete normally.

RETURN VALUE

less than 0 Errors occurred:
  • ALF_ERR_BADF: Invalid task descriptor handle.
  • ALF_ERR_SRCH: Already finalized task handle.
  • ALF_ERR_PERM: The API call is not permitted at the current context. For example, some created work block handles are not enqueued.
  • ALF_ERR_GENERIC: Generic internal errors.
Related reference
alf_task_handle_t
alf_task_desc_handle_t
alf_task_desc_create
alf_task_desc_destroy
alf_task_desc_ctx_entry_add
alf_task_desc_set_int32
alf_task_desc_set_int64
alf_task_create
alf_task_wait
alf_task_query
alf_task_destroy
alf_task_depends_on
alf_task_event_handler_register