51 字
1 分钟
内存序
happens-before
形容操作之间的内存可见性 Simply happens-before Strongly happens-before
Modification order
Write-write coherence Write-read coherence Read-read coherence Read-write coherence
sequenced-before
同一个线程中的可见性 carries-dependency
release-sequence
dependency-ordered before
Inter-thread happens-before
Synchronizes with
Visible side-effects
Consume operation
Acquire operation
Release operation
Relaxed ordering
Release-Acquire ordering
Release-Consume ordering
Sequentially-consistent ordering
参考
https://zh.cppreference.com/w/cpp/atomic/memory_order https://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html
