mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-15 23:09:22 +01:00
fixed memory ordering in atomic_integral
This commit is contained in:
committed by
Christian Mazakas
parent
0d1fdae84c
commit
fb4437219f
@@ -137,8 +137,8 @@ struct atomic_integral
|
||||
{
|
||||
operator Integral()const{return n.load(std::memory_order_acquire);}
|
||||
void operator=(Integral m){n.store(m,std::memory_order_release);}
|
||||
void operator|=(Integral m){n.fetch_or(m,std::memory_order_release);}
|
||||
void operator&=(Integral m){n.fetch_and(m,std::memory_order_release);}
|
||||
void operator|=(Integral m){n.fetch_or(m,std::memory_order_acq_rel);}
|
||||
void operator&=(Integral m){n.fetch_and(m,std::memory_order_acq_rel);}
|
||||
|
||||
std::atomic<Integral> n;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user