Re:Making the Tokio scheduler 10x faster
by comex on Monday October 14, 2019 @10:05PM
(#21254940)
An assembly-level read or write will always be atomic anyway, and in fact a relaxed atomic read/write typically compiles down to the exact same assembly as a normal read/write. However, there are compiler optimizations that can break atomicity, such as splitting accesses into multiple parts; using (relaxed) atomics instructs the compiler not to perform those optimizations.
[ Parent
| on HN ]
There are no comments on this comment yet.