HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

12.3  final Clause

Name: final

Properties: unique

Arguments

Name

Type

Properties

finalize

expression of logical type

default

Directives

task

,

taskloop

Semantics

The final clause specifies that tasks generated by the construct on which it appears are final tasks if the finalize expression evaluates to true. All task constructs that are encountered during execution of a final task generate final and included tasks. The use of a variable in a finalize expression causes an implicit reference to the variable in all enclosing constructs. The finalize expression is evaluated in the context outside of the construct on which the clause appears,

Cross References