MCPcopy Create free account
hub / github.com/ElementsProject/elements / Ref

Method Ref

src/leveldb/util/cache.cc:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void LRUCache::Ref(LRUHandle* e) {
218 if (e->refs == 1 && e->in_cache) { // If on lru_ list, move to in_use_ list.
219 LRU_Remove(e);
220 LRU_Append(&in_use_, e);
221 }
222 e->refs++;
223}
224
225void LRUCache::Unref(LRUHandle* e) {
226 assert(e->refs > 0);

Callers 3

MemTableConstructorMethod · 0.45
FinishImplMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 3

MemTableConstructorMethod · 0.36
FinishImplMethod · 0.36
TESTFunction · 0.36