Пример #1
0
    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));
        }
    }
Пример #2
0
 void
 store (NodeObject::ref object)
 {
     std::lock_guard<std::mutex> _(db_->mutex);
     db_->table.emplace (object->getHash(), object);
 }