Compartilhar via


default (OpenMP)

Specifies the behavior of unscoped variables in a parallel region.

default(shared | none)

Remarks

shared, which is in effect if the default clause is not specified, means that any variable in a parallel region will be treated as if it were specified with the shared (OpenMP) clause. none means that any variables used in a parallel region that are not scoped with the private (OpenMP), shared (OpenMP), reduction, firstprivate, or lastprivate clause will cause a compiler error.

default applies to the following directives:

For more information, see 2.7.2.5 default.

Example

See private (OpenMP) for an example of using default.

See Also

Reference

OpenMP Clauses