int omp_get_num_threads(void);
SummaryThe omp_get_num_threads routine returns the number of threads in the current team.
BindingThe binding region for an omp_get_num_threads region is the innermost enclosing parallel region.
EffectThe omp_get_num_threads routine returns the number of threads in the team that is executing the parallel region to which the routine region binds. If called from the sequential part of a program, this routine returns 1.