Skip to content
Snippets Groups Projects
Commit c1d7e7d5 authored by James Cook's avatar James Cook
Browse files

Added clear() method for debugging

parent b77cd684
No related branches found
No related tags found
No related merge requests found
......@@ -674,6 +674,12 @@ void LLCacheName::dumpStats()
<< llendl;
}
void LLCacheName::clear()
{
for_each(impl.mCache.begin(), impl.mCache.end(), DeletePairedPointer());
impl.mCache.clear();
}
//static
std::string LLCacheName::getDefaultName()
{
......
......@@ -115,6 +115,7 @@ class LLCacheName
// Debugging
void dump(); // Dumps the contents of the cache
void dumpStats(); // Dumps the sizes of the cache and associated queues.
void clear(); // Deletes all entries from the cache
static std::string getDefaultName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment