Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Well you can't have a memory race without unsafe. The goal of the example was to show undefined behaviour.


view as:

Ah, you wanted to show an example in Rust with unsafe where atomicity was not guaranteed.

Legal | privacy