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