tmp/tmp7i6pylva/{from.md → to.md}
RENAMED
|
@@ -12,9 +12,9 @@ elements in the same container, excepting `vector<bool>`, are modified
|
|
| 12 |
concurrently.
|
| 13 |
|
| 14 |
[*Note 1*: For a `vector<int> x` with a size greater than one,
|
| 15 |
`x[1] = 5` and `*x.begin() = 10` can be executed concurrently without a
|
| 16 |
data race, but `x[0] = 5` and `*x.begin() = 10` executed concurrently
|
| 17 |
-
|
| 18 |
-
`vector<bool> y`, `y[0] = true`
|
| 19 |
`y[1] = true`. — *end note*]
|
| 20 |
|
|
|
|
| 12 |
concurrently.
|
| 13 |
|
| 14 |
[*Note 1*: For a `vector<int> x` with a size greater than one,
|
| 15 |
`x[1] = 5` and `*x.begin() = 10` can be executed concurrently without a
|
| 16 |
data race, but `x[0] = 5` and `*x.begin() = 10` executed concurrently
|
| 17 |
+
can result in a data race. As an exception to the general rule, for a
|
| 18 |
+
`vector<bool> y`, `y[0] = true` can race with
|
| 19 |
`y[1] = true`. — *end note*]
|
| 20 |
|