Quantcast
Channel: acquire-release pair out of order execution - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Stas for acquire-release pair out of order execution

You might consider store/load functions with release/acquire memory order as the following pseudo-code:template<class T>struct weak_atomic{ void store(T newValue) { ReleaseBarrier(); m_value =...

View Article



acquire-release pair out of order execution

I'm thinking of whether or not it is possible for atomic variable to load the old value in acquire-release pair.Let's suppose we have atomic variable x, and we store that variable with release...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images