From d085c4054107c601bbebe90206b07f3e62e185b5 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 24 Mar 2023 18:37:53 +0100 Subject: [PATCH] relaxed all ops of atomic_integral --- include/boost/unordered/detail/foa/concurrent_table.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index b56d7f1e..6b37aebe 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -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 n; };