Skip to content

Commit fe7a992

Browse files
committed
---
yaml --- r: 236112 b: refs/heads/stable c: 8c7111d h: refs/heads/master v: v3
1 parent bd12372 commit fe7a992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 36a8b94464dd0cc7763fe3fb2fe9a3fbed273d06
32+
refs/heads/stable: 8c7111da07f20422a6bd5243b56d302f0f02c3a5
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/tarpl/atomics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ x = 1; y *= 2;
8585

8686
Ideally this program has 2 possible final states:
8787

88-
* `y = 3`: (thread 2 did the check before thread 1 completed) y = 6`: (thread 2
89-
* `did the check after thread 1 completed)
88+
* `y = 3`: (thread 2 did the check before thread 1 completed)
89+
* `y = 6`: (thread 2 did the check after thread 1 completed)
9090

9191
However there's a third potential state that the hardware enables:
9292

93-
* `y = 2`: (thread 2 saw `x = 2`, but not `y = 3`, and then overwrote `y = 3`)
93+
* `y = 2`: (thread 2 saw `x = 1`, but not `y = 3`, and then overwrote `y = 3`)
9494

9595
It's worth noting that different kinds of CPU provide different guarantees. It
9696
is common to separate hardware into two categories: strongly-ordered and weakly-

0 commit comments

Comments
 (0)