You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/parallel/openmp/reference/openmp-clauses.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,12 @@ For data-sharing attributes:
32
32
|[shared](#shared-openmp)|Specifies that one or more variables should be shared among all threads.|
33
33
|[default](#default-openmp)|Specifies the behavior of unscoped variables in a parallel region.|
34
34
|[reduction](#reduction)|Specifies that one or more variables that are private to each thread are the subject of a reduction operation at the end of the parallel region.|
35
-
|[copyin](#copyin)|Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.|
35
+
|[copyin](#copyin)|Allows threads to access the main thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.|
36
36
|[copyprivate](#copyprivate)|Specifies that one or more variables should be shared among all threads.|
37
37
38
38
## <aname="copyin"></a> copyin
39
39
40
-
Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.
40
+
Allows threads to access the main thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.
41
41
42
42
```cpp
43
43
copyin(var)
@@ -46,7 +46,7 @@ copyin(var)
46
46
### Parameters
47
47
48
48
*var*<br/>
49
-
The `threadprivate` variable that will be initialized with the variable's value in the master thread, as it exists before the parallel construct.
49
+
The `threadprivate` variable that will be initialized with the variable's value in the main thread, as it exists before the parallel construct.
50
50
51
51
### Remarks
52
52
@@ -513,7 +513,7 @@ int main() {
513
513
printf_s("These are the variables after exit from "
514
514
"the parallel region.\n");
515
515
printf_s("nThreadPrivate = %d (The last value in the "
516
-
"master thread)\n", nThreadPrivate);
516
+
"main thread)\n", nThreadPrivate);
517
517
printf_s(" nPrivate = %d (The value prior to "
518
518
"entering parallel region)\n", nPrivate);
519
519
printf_s(" nFirstPrivate = %d (The value prior to "
@@ -591,7 +591,7 @@ nFirstPrivate = 3
591
591
nShared = 3
592
592
593
593
These are the variables after exit from the parallel region.
594
-
nThreadPrivate = 0 (The last value in the master thread)
594
+
nThreadPrivate = 0 (The last value in the main thread)
595
595
nPrivate = 4 (The value prior to entering parallel region)
596
596
nFirstPrivate = 4 (The value prior to entering parallel region)
597
597
nLastPrivate = 3 (The value from the last iteration of the loop)
0 commit comments