implemented proper stats handling on concurrent<->unordered move construction

This commit is contained in:
joaquintides
2024-05-03 18:04:21 +02:00
parent 37451ecc94
commit 223f64752d
3 changed files with 31 additions and 3 deletions
@@ -514,6 +514,8 @@ public:
x.arrays=ah.release();
x.size_ctrl.ml=x.initial_max_load();
x.size_ctrl.size=0;
BOOST_UNORDERED_SWAP_STATS(
this->get_cumulative_stats(),x.get_cumulative_stats());
}
concurrent_table(compatible_nonconcurrent_table&& x):
+3 -1
View File
@@ -1,6 +1,6 @@
/* Fast open-addressing hash table.
*
* Copyright 2022-2023 Joaquin M Lopez Munoz.
* Copyright 2022-2024 Joaquin M Lopez Munoz.
* Copyright 2023 Christian Mazakas.
* Copyright 2024 Braden Ganetsky.
* Distributed under the Boost Software License, Version 1.0.
@@ -593,6 +593,8 @@ private:
x.arrays=ah.release();
x.size_ctrl.ml=x.initial_max_load();
x.size_ctrl.size=0;
BOOST_UNORDERED_SWAP_STATS(
this->get_cumulative_stats(),x.get_cumulative_stats());
}
template<typename ExclusiveLockGuard>