| 92 | } |
| 93 | |
| 94 | void HashTable::IdsAllocator::GetId(int64* id) { |
| 95 | if (free_list_.empty()) { |
| 96 | *id = counter_++; |
| 97 | return; |
| 98 | } |
| 99 | *id = free_list_.front(); |
| 100 | free_list_.pop_front(); |
| 101 | } |
| 102 | |
| 103 | void HashTable::IdsAllocator::Clear() { |
| 104 | free_list_.clear(); |
no test coverage detected