Spinning on an atomic load with acquire consistency vs. relaxed consistency

后端 未结 0 857
星月不相逢
星月不相逢 2020-12-31 13:15

Consider the code below:

// Class member initialization:
std::atomic ready = false;

...

// Core A:
while (!ready.load(std::memory_order_acquire)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题