alf_num_instances_set - Sets the maximum total number of parallel task instances ALF can have at one time.
int alf_num_instances_set(alf_handle_t alf_handle, unsigned int number_of_instances);
Parameters | |
alf_handle [IN] | A handle to the ALF runtime code. |
number_of_instances [IN] | Specifies the maximum number of task instances that the caller wants to have. When this parameter is zero, the runtime allocates as many task instances as requested by the application programmer. However, the subsequent alf_ask_create call returns an error if ALF cannot accommodate the request. |
This function sets the maximum total number of parallel task instances ALF can have at one time. If number_of_instances is zero, there is no limit set by the application and ALF returns an error if it cannot accommodate a particular task creation request with a large number of instances.
> 0 | the actual number of instances provided by the ALF runtime. |
less than 0 | Errors occurred:
|