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
A customer reported that the Remarks section for the master and single directives was confusing. Updated to make it clear that the reference to single in the remarks for master and the reference to master in the remarks for single are suggesting alternatives.
Have to use 'master' instead of 'main' here because that it is an OpenMP keyword.
Copy file name to clipboardExpand all lines: docs/parallel/openmp/reference/openmp-directives.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -369,10 +369,10 @@ Specifies that only the master thread should execute a section of the program.
369
369
370
370
The `master` directive supports no clauses.
371
371
372
-
The [single](#single) directive lets you specify that a section of code should be executed on a single thread, not necessarily the master thread.
373
-
374
372
For more information, see [2.6.1 master construct](../2-directives.md#261-master-construct).
375
373
374
+
To specify that a section of code should be executed on a single thread, not necessarily the master thread, use the [single](#single) directive instead.
375
+
376
376
### Example
377
377
378
378
```cpp
@@ -629,10 +629,10 @@ The `single` directive supports the following clauses:
629
629
-[copyprivate](openmp-clauses.md#copyprivate)
630
630
-[nowait](openmp-clauses.md#nowait)
631
631
632
-
The [master](#master) directive lets you specify that a section of code should be executed only on the master thread.
633
-
634
632
For more information, see [2.4.3 single construct](../2-directives.md#243-single-construct).
635
633
634
+
To specify that a section of code should only be executed on the master thread, use the [master](#master) directive instead.
0 commit comments