shared (OpenMP)
Visual Studio 2005
Specifies that one or more variables should be shared among all threads.
shared(var)
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.
See private (OpenMP) for an example of using shared.