omp_in_parallel – Whether a parallel region is active#
- Description:
This function returns
trueif currently running in parallel,falseotherwise. Here,trueandfalserepresent their language-specific counterparts.- C/C++:
Prototype:
int omp_in_parallel(void);- Fortran:
Interface:
logical function omp_in_parallel()- Reference:
OpenMP specification v4.5, Section 3.2.6.