Fork me on GitHub

OpenMP Directives: Synchronization Constructs: TASKWAIT Directive

Purpose:

Format:

Fortran

!$OMP TASKWAIT

C/C++

#pragma omp taskwait  newline

Restrictions:

Because the taskwait construct does not have a C language statement as part of its syntax, there are some restrictions on its placement within a program. The taskwait directive may be placed only at a point where a base language statement is allowed. The taskwait directive may not be used in place of the statement following an if, while, do, switch, or label. See the OpenMP 3.1 specifications document for details.