Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Specifies that one or more variables should be shared among all threads.
shared(var)
Remarks
where,
- var
One more more variables to share. If more than one variable is specified, separate variable names with a comma.
Remarks
Another way to share variables among threads is with the copyprivate clause.
shared applies to the following directives:
For more information, see 2.7.2.4 shared.
Example
See private (OpenMP) for an example of using shared.