forked from mirrors/0ad
944994b21e
The compare-and-switch operation in this situation does not need to be atomic. This class must be copyable, so the CAS'd flag cannot be adapted to use std::atomic.