Spinning on a load with acquire consistency vs. relaxed consistency

后端 未结 0 687
我在风中等你
我在风中等你 2020-12-31 12:57

Consider the code below:

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

...

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


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