HOME
| OPENMP API Specification: Version 5.0 November 2018

2.10.4  taskyield Construct

SummaryThe taskyield construct specifies that the current task can be suspended in favor of execution of a different task. The taskyield construct is a stand-alone directive.

Syntax

SVG-Viewer needed.

The syntax of the taskyield construct is as follows:  

 
#pragma omp taskyield new-line  

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the taskyield construct is as follows:  

 
!$omp taskyield  

SVG-Viewer needed.

BindingA taskyield region binds to the current task region. The binding thread set of the taskyield region is the current team.

DescriptionThe taskyield region includes an explicit task scheduling point in the current task region.

Cross References