omp_get_active_level

Purpose

Use omp_get_active_level to return the number of active parallel regions that are nested.

Prototype

int omp_get_active_level(void);