void store (NodeObject::ref object) { Map::iterator iter = m_map.find (object->getHash ()); if (iter == m_map.end ()) { m_map.insert (std::make_pair (object->getHash (), object)); } }
void store (NodeObject::ref object) { std::lock_guard<std::mutex> _(db_->mutex); db_->table.emplace (object->getHash(), object); }