This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -255,18 +255,28 @@ version (CoreDdoc)
255
255
*/
256
256
enum MemoryOrder
257
257
{
258
- // / Not sequenced.
259
- // / Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#monotonic, LLVM AtomicOrdering.Monotonic).
258
+ /+ +
259
+ Not sequenced.
260
+ Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#monotonic, LLVM AtomicOrdering.Monotonic)
261
+ and C++11/C11 `memory_order_relaxed`.
262
+ +/
260
263
raw,
261
- // / Hoist-load + hoist-store barrier.
262
- // / Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#acquire, LLVM AtomicOrdering.Acquire).
264
+ /+ +
265
+ Hoist-load + hoist-store barrier.
266
+ Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#acquire, LLVM AtomicOrdering.Acquire)
267
+ and C++11/C11 `memory_order_acquire`.
268
+ +/
263
269
acq,
264
- // / Sink-load + sink-store barrier.
265
- // / Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#release, LLVM AtomicOrdering.Release).
270
+ /+ +
271
+ Sink-load + sink-store barrier.
272
+ Corresponds to $(LINK2 https://llvm.org/docs/Atomics.html#release, LLVM AtomicOrdering.Release)
273
+ and C++11/C11 `memory_order_release`.
274
+ +/
266
275
rel,
267
276
/+ +
268
277
Fully sequenced (acquire + release). Corresponds to
269
278
$(LINK2 https://llvm.org/docs/Atomics.html#sequentiallyconsistent, LLVM AtomicOrdering.SequentiallyConsistent)
279
+ and C++11/C11 `memory_order_seq_cst`.
270
280
+/
271
281
seq,
272
282
}
You can’t perform that action at this time.
0 commit comments