diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 0f1f1145..2e034c11 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -30,6 +30,7 @@ #include #include #include +#include "oneapi/tbb/spin_rw_mutex.h" #if !defined(BOOST_UNORDERED_DISABLE_PARALLEL_ALGORITHMS) #if defined(BOOST_UNORDERED_ENABLE_PARALLEL_ALGORITHMS)|| \ @@ -211,7 +212,7 @@ struct atomic_integral struct group_access { - using mutex_type=rw_spinlock; + using mutex_type=tbb::spin_rw_mutex; using shared_lock_guard=shared_lock; using exclusive_lock_guard=lock_guard; using insert_counter_type=std::atomic;