void omp_set_dynamic(int dynamic_threads);
Summary The omp_set_dynamic routine enables or disables dynamic adjustment of the number of threads available for the execution of subsequent parallel regions by setting the value of the dyn-var ICV.
Binding The binding task set for an omp_set_dynamic region is the generating task.
Effect For implementations that support dynamic adjustment of the number of threads, if the argument to omp_set_dynamic evaluates to true, dynamic adjustment is enabled for the current task; otherwise, dynamic adjustment is disabled for the current task. For implementations that do not support dynamic adjustment of the number of threads, this routine has no effect: the value of dyn-var remains false.