File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/stable/src/doc/tarpl Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 36a8b94464dd0cc7763fe3fb2fe9a3fbed273d06
32
+ refs/heads/stable: 8c7111da07f20422a6bd5243b56d302f0f02c3a5
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ x = 1; y *= 2;
85
85
86
86
Ideally this program has 2 possible final states:
87
87
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)
90
90
91
91
However there's a third potential state that the hardware enables:
92
92
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 ` )
94
94
95
95
It's worth noting that different kinds of CPU provide different guarantees. It
96
96
is common to separate hardware into two categories: strongly-ordered and weakly-
You can’t perform that action at this time.
0 commit comments