omp_get_thread_num
– Current thread IDomp_get_thread_num
always returns 0. In parallel regions the return value varies
from 0 to omp_get_num_threads
-1 inclusive. The return
value of the master thread of a team is always 0.
Prototype: | int omp_get_thread_num(void);
|
Interface: | integer function omp_get_thread_num()
|