]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openmp-runtime-library-routines/ompgetcancellation.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompgetcancellation.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_get_cancellation:
7
8omp_get_cancellation -- Whether cancellation support is enabled
9***************************************************************
10
11Description:
12 This function returns ``true`` if cancellation is activated, ``false``
13 otherwise. Here, ``true`` and ``false`` represent their language-specific
14 counterparts. Unless :envvar:`OMP_CANCELLATION` is set true, cancellations are
15 deactivated.
16
17C/C++:
18 .. list-table::
19
20 * - *Prototype*:
21 - ``int omp_get_cancellation(void);``
22
23Fortran:
24 .. list-table::
25
26 * - *Interface*:
27 - ``logical function omp_get_cancellation()``
28
29See also:
30 :ref:`OMP_CANCELLATION`
31
32Reference:
3ed1b4ce 33 :openmp:`4.5`, Section 3.2.9.