共用方式為


copyin

 

Allows threads to access the master thread's value, for a threadprivate variable.

Syntax

copyin
(var)  

Remarks

where,

var
The threadprivate variable that will be initialized with the value of the variable in the master thread, as it exists before the parallel construct.

Remarks

copyin applies to the following directives:

For more information, see 2.7.2.7 copyin.

Example

See threadprivate for an example of using copyin.

See Also

Clauses