alf_task_depends_on - Describes a relationship between two tasks.
int alf_task_depends_on (alf_task_handle_t task_handle_dependent, alf_task_handle_t task_handle);
Parameters | |
task_handle_dependent [IN] | The handle to the dependent task |
task_handle [IN] | The handle to a task |
This function describes a relationship between two tasks. The task specified by task_handle_dependent cannot be scheduled to run until the task specified by task_handle has run to finish normally. When this API is called, task_handle must not be an explicitly destroyed task. An error is reported if it is the case. If the task associated with task_handle is destroyed before normal completion, the task_handle_dependent is also destroyed because its dependency can no longer be satisfied.
If task A depends on task B, a call to alf_task_wait (A_handle) effectively enforces a wait on task B as well. A duplicate dependency is handled silently and not treated as an error.
Refer to Task dependency and task scheduling for more information on task dependency and limitations on when the task dependencies can be set.
Whenever a situation occurs that is not permitted, the function returns ALF_ERR_PERM.
0 | Success |
less than 0 | Errors occurred:
|