Sun Studio 12 Update 1: OpenMP API User's Guide

5.3 TASKWAIT Directive

Completion of a subset of all explicit tasks bound to a given parallel region may be specified through the use of the taskwait directive. The taskwait directive specifies a wait on the completion of child tasks generated since the beginning of the current (implicit or explicit) task. Note that the taskwait directive specifies a wait on the completion of direct children tasks, not all descendant tasks.