atomic_thread_fence
Just like you can have a std::atomic synchronizes two threads with each other with release-acquire semantic, you can also have Fence-Fence, Atomic-Fence, Fence-Atomic synchronizations. C++ reference has very detailed documentation about when there exists a valid synchronizes-with [https://preshing.com/20130823/the-synchronizes-with-relation/] relationship, https://en.cppreference.com/w/cpp/…