libgomp: omp_in_parallel
1
1 2.21 'omp_in_parallel' - Whether a parallel region is active
1 ============================================================
1
1 _Description_:
1 This function returns 'true' if currently running in parallel,
1 'false' otherwise. Here, 'true' and 'false' represent their
1 language-specific counterparts.
1
1 _C/C++_:
1 _Prototype_: 'int omp_in_parallel(void);'
1
1 _Fortran_:
1 _Interface_: 'logical function omp_in_parallel()'
1
1 _Reference_:
1 OpenMP specification v4.5 (http://www.openmp.org/), Section 3.2.6.
1