diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 210ac4ba..0f1f1145 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -300,16 +300,18 @@ struct concurrent_table_arrays:table_arrays group_access *group_accesses; }; -struct cache_aligned_size_control +struct atomic_size_control { static constexpr auto atomic_size_t_size=sizeof(std::atomic); BOOST_STATIC_ASSERT(atomic_size_t_size ml; unsigned char pad1_[cacheline_size-atomic_size_t_size]; @@ -326,7 +328,7 @@ swap_atomic_size_t(std::atomic& x,std::atomic& y) y=tmp; } -inline void swap(cache_aligned_size_control& x,cache_aligned_size_control& y) +inline void swap(atomic_size_control& x,atomic_size_control& y) { swap_atomic_size_t(x.ml,y.ml); swap_atomic_size_t(x.size,y.size); @@ -392,7 +394,7 @@ inline void swap(cache_aligned_size_control& x,cache_aligned_size_control& y) template using concurrent_table_core_impl=table_core< TypePolicy,group15,concurrent_table_arrays, - cache_aligned_size_control,Hash,Pred,Allocator>; + atomic_size_control,Hash,Pred,Allocator>; #include