Skip to content

Commit

Permalink
Merge branch 'master' of github.com:greg7mdp/parallel-hashmap into re…
Browse files Browse the repository at this point in the history
…move_upgrade_to_unique
  • Loading branch information
greg7mdp committed Nov 29, 2023
2 parents 4de4727 + 7556c95 commit 94452b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,10 @@ class raw_hash_set
friend class raw_hash_set;

public:
slot_type* slot() const {
return *slot_;
}

template <class... Args>
void operator()(Args&&... args) const {
assert(*slot_);
Expand Down Expand Up @@ -3247,7 +3251,7 @@ class parallel_hash_set
set.lazy_emplace_at(offset, std::forward<F>(f));
set.set_ctrl(offset, H2(hashval));
}
return iterator_at(offset);
return make_iterator(&inner, set.iterator_at(offset));
}

template <class K = key_type, class F>
Expand Down
2 changes: 1 addition & 1 deletion parallel_hashmap/phmap_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -4882,8 +4882,8 @@ class LockableBaseImpl

private:
mutex_type *m_;
bool locked_shared_;
bool locked_;
bool locked_shared_;
};

// ----------------------------------------------------
Expand Down

0 comments on commit 94452b1

Please sign in to comment.