From ea305283f3c8411b72fa395515edbdb29c741948 Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Mon, 4 Aug 2025 11:02:46 -0400 Subject: [PATCH] Tentative fix for issue #280. --- parallel_hashmap/phmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index ba3be34..39c55ac 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3559,7 +3559,8 @@ public: class K = key_type, typename std::enable_if::value, int>::type = 0> node_type extract(const key_arg& key) { - auto it = find(key); + SharedLock m; + auto it = this->template find(key, this->hash(key), m); return it == end() ? node_type() : extract(const_iterator{it}); }