Commit 1141414
committed
Clarify that using different scopes is a data race
Even when using two atomic_ref objects with the same DefaultScope, it's
possible to encounter a data race by overriding the scope parameter of
individual operations.
This is a general clean-up but was motivated by work-item scope atomics:
any potentially concurrent use of work-item scope atomics and atomics with a
different scope results in undefined behavior.1 parent cb816e2 commit 1141414
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1099 | 1102 | | |
1100 | 1103 | | |
1101 | 1104 | | |
| |||
1116 | 1119 | | |
1117 | 1120 | | |
1118 | 1121 | | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1123 | 1126 | | |
1124 | 1127 | | |
1125 | 1128 | | |
| |||
0 commit comments