From d6a8a4462c289819d6ecde5435c5f401f58869f9 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sun, 3 Dec 2023 19:51:26 +0100 Subject: [PATCH] reverted to epoch array of size 128 and to non-relaxed wait_for_epochs --- include/boost/unordered/detail/foa/concurrent_table.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index e3facda7..37bfda14 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -973,7 +973,7 @@ private: #if defined(BOOST_UNORDERED_LATCH_FREE) using epoch_type=std::atomic; - using epoch_array=cache_aligned_array; // TODO: adapt 16 to the machine + using epoch_array=cache_aligned_array; // TODO: adapt 128 to the machine #endif #if defined(BOOST_UNORDERED_LATCH_FREE) @@ -1825,10 +1825,10 @@ private: static void wait_for_epochs() { for(std::size_t i=0;i std::atomic concurrent_table::thread_counter={}; +#if defined(BOOST_UNORDERED_LATCH_FREE) template typename concurrent_table::epoch_array concurrent_table::epochs={}; +#endif #if defined(BOOST_MSVC) #pragma warning(pop) /* C4714 */