omp_get_thread_limit
int omp_get_thread_limit(void)
Returns the value of the
thread-limit-var
ICV, which is the maximum number of OpenMP threads available to the program.
OpenMP API Index