Home
last modified time | relevance | path

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

/external/leveldb/util/
Dcache.cc189 LRUHandle lru_ GUARDED_BY(mutex_);
200 lru_.next = &lru_; in LRUCache()
201 lru_.prev = &lru_; in LRUCache()
208 for (LRUHandle* e = lru_.next; e != &lru_;) { in ~LRUCache()
236 LRU_Append(&lru_, e); in Unref()
294 while (usage_ > capacity_ && lru_.next != &lru_) { in Insert()
295 LRUHandle* old = lru_.next; in Insert()
326 while (lru_.next != &lru_) { in Prune()
327 LRUHandle* e = lru_.next; in Prune()
/external/tensorflow/tensorflow/core/lib/io/
Dcache.cc201 LRUHandle lru_ TF_GUARDED_BY(mutex_);
212 lru_.next = &lru_; in LRUCache()
213 lru_.prev = &lru_; in LRUCache()
220 for (LRUHandle* e = lru_.next; e != &lru_;) { in ~LRUCache()
248 LRU_Append(&lru_, e); in Unref()
306 while (usage_ > capacity_ && lru_.next != &lru_) { in Insert()
307 LRUHandle* old = lru_.next; in Insert()
338 while (lru_.next != &lru_) { in Prune()
339 LRUHandle* e = lru_.next; in Prune()
/external/cronet/net/disk_cache/simple/
Dsimple_file_tracker.cc35 DCHECK(lru_.empty()); in ~SimpleFileTracker()
215 return tracked_files_.empty() && lru_.empty(); in IsEmptyForTesting()
242 lru_.erase(owners_files->position_in_lru); in PrepareClose()
257 auto i = lru_.end(); in CloseFilesIfTooManyOpen()
258 while (open_files_ > file_limit_ && i != lru_.begin()) { in CloseFilesIfTooManyOpen()
280 lru_.erase(tracked_files->position_in_lru); in CloseFilesIfTooManyOpen()
309 lru_.push_front(owners_files); in EnsureInFrontOfLRU()
310 owners_files->position_in_lru = lru_.begin(); in EnsureInFrontOfLRU()
312 } else if (owners_files->position_in_lru != lru_.begin()) { in EnsureInFrontOfLRU()
313 lru_.splice(lru_.begin(), lru_, owners_files->position_in_lru); in EnsureInFrontOfLRU()
Dsimple_file_tracker.h220 std::list<TrackedFiles*> lru_; variable