Storage: Use unique_ptr instead of shared_ptr for Entry.

This commit is contained in:
Peter Johnson
2015-08-01 11:47:35 -07:00
parent 3b207ad2c3
commit 67de7af7b2
3 changed files with 34 additions and 32 deletions

View File

@@ -85,8 +85,8 @@ class Storage {
SequenceNumber seq_num;
};
typedef llvm::StringMap<std::shared_ptr<Entry>> EntriesMap;
typedef std::vector<std::shared_ptr<Entry>> IdMap;
typedef llvm::StringMap<std::unique_ptr<Entry>> EntriesMap;
typedef std::vector<Entry*> IdMap;
mutable std::mutex m_mutex;
EntriesMap m_entries;