Skip to content

Commit f5815b2

Browse files
committed
---
yaml --- r: 229041 b: refs/heads/try c: 8c7111d h: refs/heads/master i: 229039: c0a21de v: v3
1 parent 935616f commit f5815b2

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 36a8b94464dd0cc7763fe3fb2fe9a3fbed273d06
4+
refs/heads/try: 8c7111da07f20422a6bd5243b56d302f0f02c3a5
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)