(no title)
likeliv | 6 years ago
Can't you get some values "out of thin air" (partial updates of some bits.) Or some intermediate values?
(For example, can the compiler decide to use this memory location to store some unrelated temporary result, as it knows it will erase it soon with a final value and that no other threads is supposed to access this)
lilyball|6 years ago
carllerche|6 years ago
CodesInChaos|6 years ago
BubRoss|6 years ago
likeliv|6 years ago
Although in this case, I guess this is probably fine since the non-atomic read can't race with a write.
charliesome|6 years ago