Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Specifies that the enclosing context's version of the variable is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).
lastprivate(var)
Remarks
where,
- var
The variable that is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).
Remarks
lastprivate applies to the following directives:
For more information, see 2.7.2.3 lastprivate.
Example
See schedule for an example of using lastprivate clause.