int omp_get_thread_limit(void);
Summary The omp_get_thread_limit routine returns the maximum number of OpenMP threads available to participate in the current contention group.
Binding The binding task set for an omp_get_thread_limit region is the generating task.
Effect The omp_get_thread_limit routine returns the value of the thread-limit-var ICV.