Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 1.51 KB

File metadata and controls

67 lines (56 loc) · 1.51 KB
title copyin | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
copyin
dev_langs
C++
helpviewer_keywords
copyin OpenMP clause
ms.assetid 369efa88-613c-4cb1-9e11-7b9ee08a4b25
caps.latest.revision 7
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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