Next: omp_in_final
– Whether in final or included task region, Previous: omp_get_thread_num
– Current thread ID, Up: OpenMP 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.