2 ms·
The Rust compiler won’t compile code that mutates shared state unless there are appropriate memory fences. It makes you insert these barriers for correctness.
by adastra22 3y ago
The Rust compiler won’t compile code that mutates shared state unless there are appropriate memory fences. It makes you insert these barriers for correctness.
- heinrich5991 3y agoCan you give an example? I think relaxed atomics don't have memory fences.