Admin Production ni-theme
Current Publication

omp_get_thread_num

LabWindows/CVI

omp_get_thread_num

int omp_get_thread_num (void);

Purpose

Returns the thread number of the current thread executing the parallel region.

Note 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 NN is the number of the calling thread within the region.
0—The thread is the master thread that created the parallel region.
Note Note  This function also returns 0 if it is called from within a sequential region.

Additional Information

Library: OpenMP Run-Time Library

Include file: omp.h

LabWindows/CVI compatibility: LabWindows/CVI 2013 and later