Admin Production ni-theme
Current Publication

threadprivate

LabWindows/CVI

threadprivate Directive

Specifies that a variable or list of variables is private to the thread.

Binding thread set: current team

Format

#pragma omp threadprivate (list)

Example

int counter = 0;
#pragma omp threadprivate(counter)

int increment_counter()
{
   counter++;
   return(counter);
}