C++ memory order循序渐进(四)—— 在std::atomic_thread_fence 上应用std::memory_order实现不同的内存序
文章目录1.atomic_thread_fence分类和效果1.1Releasefence1.2acquirefence1.3fullfence2.fence和同样memoryorder的原子操作同步效果的区别3.利用atomic_thread_fence进行releaseacquire同步3.1releasefence-atomicacquire同步3.2atomicrelease-acquir