Skip to content

Commit b15fb5f

Browse files
authored
Clarify master and single directives.
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.
1 parent 4fd5f9c commit b15fb5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/parallel/openmp/reference/openmp-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ Specifies that only the master thread should execute a section of the program.
369369

370370
The `master` directive supports no clauses.
371371

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-
374372
For more information, see [2.6.1 master construct](../2-directives.md#261-master-construct).
375373

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+
376376
### Example
377377

378378
```cpp
@@ -629,10 +629,10 @@ The `single` directive supports the following clauses:
629629
- [copyprivate](openmp-clauses.md#copyprivate)
630630
- [nowait](openmp-clauses.md#nowait)
631631

632-
The [master](#master) directive lets you specify that a section of code should be executed only on the master thread.
633-
634632
For more information, see [2.4.3 single construct](../2-directives.md#243-single-construct).
635633

634+
To specify that a section of code should only be executed on the master thread, use the [master](#master) directive instead.
635+
636636
### Example
637637

638638
```cpp

0 commit comments

Comments
 (0)