Searched refs:mMemoryCache (Results 1 – 4 of 4) sorted by relevance
114 mMemoryCache.reserve(kPreallocatedCount); in MemoryCache()147 mMemoryCache[slot] = memory; in cacheMemory()164 if (slot < 0 || static_cast<size_t>(slot) >= mMemoryCache.size()) { in getMemory()165 return NN_ERROR() << "Invalid slot: " << slot << " vs " << mMemoryCache.size(); in getMemory()167 return mMemoryCache[slot]; in getMemory()181 mMemoryCache[slot] = {}; in freeMemory()199 CHECK_LT(mMemoryCache.size(), kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()200 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()201 mMemoryCache.emplace_back(); in allocateSlotLocked()298 mMemoryCache(std::move(memoryCache)), in Burst()[all …]
127 std::vector<nn::SharedMemory> mMemoryCache GUARDED_BY(mMutex);198 const std::shared_ptr<MemoryCache> mMemoryCache; variable
175 mMemoryCache(mBurstExecutor, mCallback) { in Burst()190 mMemoryCache.removeCacheEntry(slot); in freeMemory()237 const auto cacheEntries = NN_TRY(mMemoryCache.getCacheEntries(slotsOfPools)); in execute()
150 MemoryCache mMemoryCache; variable