Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/common_runtime/
Dpool_allocator.h103 struct PtrRecord { struct
106 PtrRecord* prev; argument
107 PtrRecord* next; argument
111 void RemoveFromList(PtrRecord* pr) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
114 void AddToList(PtrRecord* pr) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
126 std::multimap<const size_t, PtrRecord*> pool_ GUARDED_BY(mutex_);
127 PtrRecord* lru_head_ GUARDED_BY(mutex_) = nullptr;
128 PtrRecord* lru_tail_ GUARDED_BY(mutex_) = nullptr;
Dpool_allocator.cc106 PtrRecord* pr = nullptr; in AllocateRaw()
147 PtrRecord* pr = new PtrRecord; in DeallocateRaw()
159 PtrRecord* pr = iter.second; in Clear()
173 void PoolAllocator::RemoveFromList(PtrRecord* pr) { in RemoveFromList()
191 void PoolAllocator::AddToList(PtrRecord* pr) { in AddToList()
206 PtrRecord* prec = lru_tail_; in EvictOne()