omp_get_num_threads
int omp_get_num_threads(void)
This function returns the number of threads currently in the team executing the parallel region from which it is called.
OpenMP API Index