File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,10 @@ reordered to occur before it.
199
199
200
200
When thread A releases a location in memory and then thread B subsequently
201
201
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.
205
206
206
207
Basic use of release-acquire is therefore simple: you acquire a location of
207
208
memory to begin the critical section, and then release that location to end it.
You can’t perform that action at this time.
0 commit comments