diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index 39c55ac..48e53ab 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3559,8 +3559,8 @@ public: class K = key_type, typename std::enable_if::value, int>::type = 0> node_type extract(const key_arg& key) { - SharedLock m; - auto it = this->template find(key, this->hash(key), m); + UniqueLock m; + auto it = this->template find(key, this->hash(key), m); return it == end() ? node_type() : extract(const_iterator{it}); }