alf_task_dataset_associate - Associates a given task with a dataset.
int alf_task_dataset_associate(alf_task_handle_t task, alf_dataset_handle_t dataset);
Parameters | |
dataset_handle | Handle to dataset |
task_handle | Handle to the task |
This function associates a given task with a dataset. This function can only be called before any work block is enqueued for the task. After a task is associated with a dataset, all subsequent work blocks created and enqueued for this task cannot reference data outside the dataset.
After a task is associated with a dataset, further calls to alf_data_buffer_add results in error.
After a task is associated with a dataset, the host application program can only use the data after alf_task_wait is called and returned.
0 | Success |
less than 0 | Errors occurred:
|