LabWindows/CVI

Content Type
Programming Language
Current manual

nowait Clause

Overrides any implied barrier at the end of a loop construct in a region.

Format

nowait

Example

#ifdef _OPENMP
#include <omp.h>
#endif
#include <ansi_c.h>
#include <stdio.h>
void work1() {}
void work2() {}
int main (int argc, char *argv[])
{
  #pragma omp parallel
  {
    #pragma omp single
      printf("Beginning work1.\n");
    work1();
    #pragma omp single
      printf("Finishing work1.\n");
    #pragma omp single nowait
      printf("Finished work1 and beginning work2.\n");
    work2();
  }
}

In This Section
Was this information helpful?

Previous

if

Previous

if

Log in to get a better experience

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit