mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
18 lines
549 B
TeX
18 lines
549 B
TeX
%\pagebreak
|
|
\section{\kcode{copyin} Clause}
|
|
\label{sec:copyin}
|
|
\index{clauses!copyin@\kcode{copyin}}
|
|
\index{copyin clause@\kcode{copyin} clause}
|
|
\index{directives!threadprivate@\kcode{threadprivate}}
|
|
\index{threadprivate directive@\kcode{threadprivate} directive}
|
|
|
|
The \kcode{copyin} clause is used to initialize threadprivate data upon entry
|
|
to a \kcode{parallel} region. The value of the threadprivate variable in the primary
|
|
thread is copied to the threadprivate variable of each other team member.
|
|
|
|
\cexample{copyin}{1}
|
|
|
|
\fexample{copyin}{1}
|
|
|
|
|