intel_omp_task

Specifies a unit of work, potentially executed by a different thread.

Syntax

#pragma intel_omp_task

[clause[[,]clause]...]

structured-block

where clause can be any of the following:

Arguments

private(variable-list)

The private clause creates a private, default-constructed version for each object in variable-list for the task. The original object referenced by the variable has an indeterminate value upon entry to the construct, must not be modified within the dynamic extent of the construct, and has an indeterminate value upon exit from the construct.

captureprivate(variable-list)

The captureprivate clause creates a private, copy-constructed version for each object in variable-list for the task at the time the task is enqueued. The original object referenced by each variable retains its value but must not be modified within the dynamic extent of the task construct.

Description

The intel_omp_task pragma specifies a unit of work, potentially executed by a different thread.

Example

For an example on how to use intel_omp_task pragma see topic Workqueuing Example Function in Optimizing Applications>Using Parallelism: OpenMP* Support>Intel(R) Workqueing Model.

See Also