PRIVATE Clause

Parallel Directive Clause: Declares specified variables to be private to each thread in a team.

Syntax

PRIVATE (list)

list
Is the name of one or more variables or common blocks that are accessible to the scoping unit. Subobjects cannot be specified. Each name must be separated by a comma, and a named common block must appear between slashes (/ /).

The following occurs when variables are declared in a PRIVATE clause:

See Also:

Building Applications: Debugging Shared Variables, Optimizing Applications: OpenMP* Directives and Clauses Summary, Optimizing Applications: PRIVATE, FIRSTPRIVATE, and LASTPRIVATE Clauses, Optimizing Applications: REDUCTION Clause, Optimizing Applications: Data Scope Attribute Clauses Overview, Optimizing Applications: Parallel Region Directives, Optimizing Applications: Worksharing Construct Directives