omp_get_dynamic

Returns a value that indicates if the number of threads available in subsequent parallel region can be adjusted by the run time.

int omp_get_dynamic();

Return Value

If nonzero, dynamic adjustment of threads is enabled.

Remarks

Dynamic adjustment of threads is specified with omp_set_dynamic and OMP_DYNAMIC.

For more information, see 3.1.7 omp_set_dynamic Function.

Example

See omp_set_dynamic for an example of using omp_get_dynamic.

See Also

Concepts

OpenMP Functions