FIRSTPRIVATE Clause (TU*X only)

The FIRSTPRIVATE clause provides a superset of the functionality provided by the PRIVATE clause (see Section; objects are declared PRIVATE and they are initialized with certain values. It takes the following form:


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 (/ /).

Variables that appear in a FIRSTPRIVATE list are subject to PRIVATE clause semantics. In addition, private (local) copies of each variable in the different threads are initialized to the value the variable had before the parallel region started.

Previous Page Next Page Table of Contents