relaxed all ops of atomic_integral

This commit is contained in:
joaquintides
2023-03-24 18:37:53 +01:00
parent 99d5b9b1bb
commit d085c40541

View File

@ -147,7 +147,7 @@ struct atomic_integral
operator Integral()const{return n.load(std::memory_order_relaxed);}
void operator=(Integral m){n.store(m,std::memory_order_relaxed);}
void operator|=(Integral m){n.fetch_or(m,std::memory_order_relaxed);}
void operator&=(Integral m){n.fetch_and(m,std::memory_order_acq_rel);}
void operator&=(Integral m){n.fetch_and(m,std::memory_order_relaxed);}
std::atomic<Integral> n;
};