omp_get_cancellation – Whether cancellation support is enabled#

Description:

This function returns true if cancellation is activated, false otherwise. Here, true and false represent their language-specific counterparts. Unless OMP_CANCELLATION is set true, cancellations are deactivated.

C/C++:

Prototype:

int omp_get_cancellation(void);

Fortran:

Interface:

logical function omp_get_cancellation()

See also:

OMP_CANCELLATION – Set whether cancellation is activated

Reference:

OpenMP specification v4.5, Section 3.2.9.