mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
minor change and add comment
This commit is contained in:
committed by
GitHub
parent
875d5e48e5
commit
07e93a8d91
Vendored
+2
-1
@@ -91,7 +91,8 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
|
|||||||
return true;
|
return true;
|
||||||
ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1));
|
ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1));
|
||||||
ar.loadBinary(slots_, sizeof(slot_type) * capacity_);
|
ar.loadBinary(slots_, sizeof(slot_type) * capacity_);
|
||||||
if (version == s_version_base) {
|
if (version >= s_version_base) {
|
||||||
|
// growth_left should be restored after calling initialize_slots() which resets it.
|
||||||
ar.loadBinary(&growth_left(), sizeof(size_t));
|
ar.loadBinary(&growth_left(), sizeof(size_t));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user