Add 'dropCache' function to remove extraneous nodes from memory.

This commit is contained in:
JoelKatz
2013-01-27 13:55:06 -08:00
parent 43cc001eb9
commit bdd5d4af9f
3 changed files with 19 additions and 0 deletions

View File

@@ -382,6 +382,9 @@ public:
// Returns a new map that's a snapshot of this one. Force CoW
SHAMap::pointer snapShot(bool isMutable);
// Remove nodes from memory
void dropCache();
// hold the map stable across operations
ScopedLock Lock() const { return ScopedLock(mLock); }