Skip to content

Commit 0cfd181

Browse files
authored
Merge pull request #224 from updogliu/patch-1
Update atomics.md
2 parents 8d3237f + 4de216c commit 0cfd181

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/atomics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ reordered to occur before it.
199199

200200
When thread A releases a location in memory and then thread B subsequently
201201
acquires *the same* location in memory, causality is established. Every write
202-
that happened before A's release will be observed by B after its acquisition.
203-
However no causality is established with any other threads. Similarly, no
204-
causality is established if A and B access *different* locations in memory.
202+
(including non-atomic and relaxed atomic writes) that happened before A's
203+
release will be observed by B after its acquisition. However no causality is
204+
established with any other threads. Similarly, no causality is established
205+
if A and B access *different* locations in memory.
205206

206207
Basic use of release-acquire is therefore simple: you acquire a location of
207208
memory to begin the critical section, and then release that location to end it.

0 commit comments

Comments
 (0)