MCPcopy Create free account
hub / github.com/HexHive/NASS / attachToCache

Method attachToCache

binderlib/include_android9/utils/LruCache.h:270–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269template <typename TKey, typename TValue>
270void LruCache<TKey, TValue>::attachToCache(Entry& entry) {
271 if (mYoungest == NULL) {
272 mYoungest = mOldest = &entry;
273 } else {
274 entry.parent = mYoungest;
275 mYoungest->child = &entry;
276 mYoungest = &entry;
277 }
278}
279
280template <typename TKey, typename TValue>
281void LruCache<TKey, TValue>::detachFromCache(Entry& entry) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected