Home
last modified time | relevance | path

Searched refs:available_resources_ (Results 1 – 1 of 1) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dunique_resource_allocator.h118 if (Contains(available_resources_, new_item) || in ExpandPool()
123 available_resources_.insert(std::move(new_item)); in ExpandPool()
142 auto itr = available_resources_.begin(); in UniqueItem()
143 if (itr == available_resources_.end()) { in UniqueItem()
153 if (n <= 0 || available_resources_.size() < n) { in UniqueItems()
158 auto itr = available_resources_.begin(); in UniqueItems()
169 if (n <= 0 || available_resources_.size() < n) { in UniqueConsecutiveItems()
173 for (const auto& available_resource : available_resources_) { in UniqueConsecutiveItems()
189 auto itr = available_resources_.find(t); in Take()
190 if (itr == available_resources_.end()) { in Take()
[all …]