Next: omp_in_final, Previous: omp_get_thread_num, Up: Runtime Library Routines [Contents][Index]
omp_in_parallel
– Whether a parallel region is activeThis function returns true
if currently running in parallel,
false
otherwise. Here, true
and false
represent
their language-specific counterparts.
Prototype: | int omp_in_parallel(void); |
Interface: | logical function omp_in_parallel() |
OpenMP specification v4.5, Section 3.2.6.