[PATCH] Replaces __sync_swap with std::atomic

Replaces __sync_swap with std::atomic

The commented out regions mentioning this worked as is.

0001-Replaces-__sync_swap-with-std-atomic.patch (5.25 KB)