We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UniqueLock
extract()
SharedLock
1 parent b56fe78 commit c29681aCopy full SHA for c29681a
1 file changed
parallel_hashmap/phmap.h
@@ -3559,8 +3559,8 @@ class parallel_hash_set
3559
class K = key_type,
3560
typename std::enable_if<!std::is_same<K, iterator>::value, int>::type = 0>
3561
node_type extract(const key_arg<K>& key) {
3562
- SharedLock m;
3563
- auto it = this->template find<K, SharedLock>(key, this->hash(key), m);
+ UniqueLock m;
+ auto it = this->template find<K, UniqueLock>(key, this->hash(key), m);
3564
return it == end() ? node_type() : extract(const_iterator{it});
3565
}
3566
0 commit comments