3 ms·
Well you can't have a memory race without unsafe. The goal of the example was to show undefined behaviour.
by kevincox 3y ago
Well you can't have a memory race without unsafe. The goal of the example was to show undefined behaviour.
- _nalply 3y agoAh, you wanted to show an example in Rust with unsafe where atomicity was not guaranteed.