<div dir="ltr"><div>Replaces __sync_swap with std::atomic</div><div>    </div><div>The commented out regions mentioning this worked as is.</div></div>