MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / update_lru

Method update_lru

libcppcryptfs/filename/casecache.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void CaseCache::update_lru(CaseCacheNode *node)
144{
145 // if node isn't already at front of list, remove
146 // it from wherever it was and put it at the front
147
148 if (node->m_list_it != m_lru_list.begin()) {
149 m_lru_list.erase(node->m_list_it);
150 m_lru_list.push_front(node);
151 node->m_list_it = m_lru_list.begin();
152 }
153}
154
155bool CaseCache::store(LPCWSTR dirpath, const list<wstring>& files)
156{

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected