diff options
| author | levlam <levlam@telegram.org> | 2022-11-18 13:16:24 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-11-18 13:16:24 +0300 |
| commit | f8e2af3f59d94bf994bcf1afd63f1bdaf6dc3708 (patch) | |
| tree | fa1ed1d348d0c0dc519c2de60877065fbda8be00 /tdutils/td/utils/WaitFreeHashSet.h | |
| parent | 35a9a4b78510f1c73eb8cbc9b1a0e6461d04557e (diff) | |
Rename size() to calc_size() for WaitFree hash tables.
Diffstat (limited to 'tdutils/td/utils/WaitFreeHashSet.h')
| -rw-r--r-- | tdutils/td/utils/WaitFreeHashSet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdutils/td/utils/WaitFreeHashSet.h b/tdutils/td/utils/WaitFreeHashSet.h index b5229004c..54f88e7f7 100644 --- a/tdutils/td/utils/WaitFreeHashSet.h +++ b/tdutils/td/utils/WaitFreeHashSet.h @@ -96,14 +96,14 @@ class WaitFreeHashSet { } } - size_t size() const { + size_t calc_size() const { if (wait_free_storage_ == nullptr) { return default_set_.size(); } size_t result = 0; for (size_t i = 0; i < MAX_STORAGE_COUNT; i++) { - result += wait_free_storage_->sets_[i].size(); + result += wait_free_storage_->sets_[i].calc_size(); } return result; } |
