Quantcast
Channel: Atomic load and store with memory order relaxed - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Brian Bi for Atomic load and store with memory order relaxed

As I understand, it is not even guaranteed that I would get that value, just that I will get a value that was stored there at some point in time, but I could always get nullptr.Yes, it's hypothetically...

View Article



Atomic load and store with memory order relaxed

Everywhere I read I see strong recommendations not to use relaxed memory order, I wonder whether the following piece of code is one of this exceptions in which this will work, or there are any...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images