From 6869f099a581e4190487041b380a4846eccedb93 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Wed, 13 Dec 2023 13:43:09 +0100 Subject: [PATCH] disabled insertion synchronization --- 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 0c55403f..3083a532 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -1588,7 +1588,7 @@ private: startover: boost::uint32_t counter=0; { - auto lck=access(group_exclusive{},pos0); + //auto lck=access(group_exclusive{},pos0); counter=insert_counter(pos0); } if(unprotected_visit( @@ -1609,7 +1609,7 @@ private: /* slot wasn't empty */ goto startover; } - auto lck=access(group_exclusive{},pos0); + //auto lck=access(group_exclusive{},pos0); if(BOOST_UNLIKELY(insert_counter(pos0)++!=counter)){ /* other thread inserted from pos0, need to start over */ pg->reset(n);