From 41584e73d9f16d1dc77cb6a8e8bdfed3993f6f78 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Wed, 22 Mar 2023 20:09:53 +0100 Subject: [PATCH] partially reverted prior commit to nail down problem with Clang x86 --- include/boost/unordered/detail/foa/concurrent_table.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 6b37aebe..9a8be3f6 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -146,8 +146,8 @@ 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_relaxed);} + 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 n; };