]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openmp-runtime-library-routines/ompinparallel.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompinparallel.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. _omp_in_parallel:
7
8omp_in_parallel -- Whether a parallel region is active
9******************************************************
10
11Description:
12 This function returns ``true`` if currently running in parallel,
13 ``false`` otherwise. Here, ``true`` and ``false`` represent
14 their language-specific counterparts.
15
16C/C++:
17 .. list-table::
18
19 * - *Prototype*:
20 - ``int omp_in_parallel(void);``
21
22Fortran:
23 .. list-table::
24
25 * - *Interface*:
26 - ``logical function omp_in_parallel()``
27
28Reference:
3ed1b4ce 29 :openmp:`4.5`, Section 3.2.6.