Implement Shards

This commit is contained in:
Miguel Portilla
2017-04-25 12:02:51 -04:00
committed by Scott Schurr
parent aeda2430cd
commit 718d217158
74 changed files with 3992 additions and 1411 deletions

View File

@@ -155,6 +155,14 @@ public:
m_map.clear ();
}
void reset ()
{
lock_guard lock(m_mutex);
m_map.clear();
m_stats.hits = 0;
m_stats.misses = 0;
}
void setTargetSize (size_type s)
{
lock_guard lock (m_mutex);