omp_get_thread_num
int omp_get_thread_num (void);
Purpose
Returns the thread number of the current thread executing the parallel region.
![]() |
Note The OpenMP Run-Time Library is available only in the LabWindows/CVI Full Development System. |
The number is an integer between 0 and one less than the value of the number of threads used in the parallel region.
Binding thread set: current team
Parameters
None.
Return Value
Name | Type | Description | ||
returnValue | int | N—N is the number of the calling thread within the region. 0—The thread is the master thread that created the parallel region.
|
Additional Information
Library: OpenMP Run-Time Library
Include file: omp.h
LabWindows/CVI compatibility: LabWindows/CVI 2013 and later