omp_get_team_num
Purpose
The omp_get_team_num function returns the team number of the calling thread.
Prototype
int omp_get_team_num (void);
Usage
The team number is an integer in the range of 0 and one less than the number of teams in the current teams region, inclusive.
When the function is called from outside of a teams region, it returns zero.