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.h104 struct PtrRecord { struct
107 PtrRecord* prev; argument
108 PtrRecord* next; argument
112 void RemoveFromList(PtrRecord* pr) TF_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
115 void AddToList(PtrRecord* pr) TF_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
127 std::multimap<const size_t, PtrRecord*> pool_ TF_GUARDED_BY(mutex_);
128 PtrRecord* lru_head_ TF_GUARDED_BY(mutex_) = nullptr;
129 PtrRecord* lru_tail_ TF_GUARDED_BY(mutex_) = nullptr;
Dpool_allocator.cc106 PtrRecord* pr = nullptr; in AllocateRaw()
148 PtrRecord* pr = new PtrRecord; in DeallocateRaw()
160 PtrRecord* pr = iter.second; in Clear()
174 void PoolAllocator::RemoveFromList(PtrRecord* pr) { in RemoveFromList()
192 void PoolAllocator::AddToList(PtrRecord* pr) { in AddToList()
207 PtrRecord* prec = lru_tail_; in EvictOne()