共用方式為


3.1.8 omp_get_dynamic Function

The omp_get_dynamic function returns a nonzero value if dynamic adjustment of threads is enabled, and returns 0 otherwise. The format is as follows:

#include <omp.h>
int omp_get_dynamic(void);

If the implementation does not implement dynamic adjustment of the number of threads, this function always returns 0.

Cross References:

  • For a description of dynamic thread adjustment, see Section 3.1.7 on page 39.