alf_task_query - Queries the current status of a task.
int alf_task_query( alf_task_handle_t task_handle, unsigned int *p_unfinished_wbs, unsigned int *p_total_wbs);
Parameters | |
task_handle [IN] | The task handle to be checked. |
p_unfinished_wbs [OUT] | A pointer to an integer buffer where the number of unfinished work blocks of this task is returned. When a NULL pointer is given, the return value is ignored. On error, a returned value is not defined. |
p_total_wbs [OUT] | A pointer to an integer buffer where the total number of submitted work blocks of this task is returned. When a NULL pointer is given, the return value is ignored. On error, a returned value is not defined. |
This function queries the current status of a task.
> 1 | The task is pending or ready to run. |
1 | The task is currently running. |
0 | The task finished normally. |
less than 0 | Errors occurred:
|