diff options
author | Anatoly Serdtcev <serdtcev@maps.me> | 2019-02-25 18:43:56 +0300 |
---|---|---|
committer | Anatoly Serdtcev <serdtcev@maps.me> | 2019-02-25 18:43:56 +0300 |
commit | 3e71f8f5371c4ae21a93e8650e8783cdc75b5e71 (patch) | |
tree | 44a351a9201a6c9aec94b2c067d9edccf3c10e8a /geocoder | |
parent | 17388fd9f78627df12a83c25d74dab810d8f3ced (diff) |
[geocoder] Fix for review
Diffstat (limited to 'geocoder')
-rw-r--r-- | geocoder/index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geocoder/index.cpp b/geocoder/index.cpp index d17e41e454..21b30be043 100644 --- a/geocoder/index.cpp +++ b/geocoder/index.cpp @@ -98,7 +98,7 @@ void Index::AddStreet(DocId const & docId, Index::Doc const & doc) void Index::AddHouses(unsigned int loadThreadsCount) { atomic<size_t> numIndexed{0}; - mutex mutex; + mutex buildingsMutex; vector<thread> threads(loadThreadsCount); CHECK_GREATER(threads.size(), 0, ()); @@ -134,7 +134,7 @@ void Index::AddHouses(unsigned int loadThreadsCount) auto const & candidateDoc = GetDoc(candidate); if (candidateDoc.IsParentTo(buildingDoc)) { - lock_guard<std::mutex> lock(mutex); + lock_guard<mutex> lock(buildingsMutex); m_relatedBuildings[candidate].emplace_back(docId); } }); |