Failure Order Derived
std::atomic<Node*> head;
Node* expected = head.load(std::memory_order_relaxed);
head.compare_exchange_strong(expected, fresh, std::memory_order_acq_rel);
The three-argument overload was used, so only the success ordering was written out and the failure ordering is derived from it. Which ordering does the failing path actually get?
Sign in to answer questions and track your progress
Sign In