Top "Atomic-swap" questions

Atomic swap in GNU C++

I want to verify that my understanding is correct. This kind of thing is tricky so I'm almost sure I …

c++ g++ atomic atomic-swap
Lock-free swap of two unique_ptr<T>

Swapping two unique_ptrs is not guaranteed to be threadsafe. std::unique_ptr<T> a, b; std::swap(…

c++ c++11 unique-ptr lock-free atomic-swap