2 ms·
Re: the godbolt example, note that release semantics are not meaningful for load operations. > If order is one of std::memory_order_release and std::memory_ord
by loeg 3y ago
Re: the godbolt example, note that release semantics are not meaningful for load operations.
> If order is one of std::memory_order_release and std::memory_order_acq_rel, the behavior is undefined.
https://en.cppreference.com/w/cpp/atomic/atomic/load https://en.cppreference.com/w/cpp/atomic/atomic/load