Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-07-27 15:38:23 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:04 +0300
commit83c5d7e6f40063c2d41d378f35accd2885e1caf8 (patch)
tree0c864cefb987c4d942d3cd8e2a872e43f36c0834 /indexer/mwm_set.hpp
parentbe7aecb7efa171aa67ac20397794a217f9421dc3 (diff)
Review fixes.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r--indexer/mwm_set.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp
index 8370a0f482..aef8e4d977 100644
--- a/indexer/mwm_set.hpp
+++ b/indexer/mwm_set.hpp
@@ -208,6 +208,8 @@ public:
MwmHandle GetMwmHandleByCountryFile(platform::CountryFile const & countryFile);
+ MwmHandle GetMwmHandleById(MwmId const & id);
+
protected:
/// @return True when file format version was successfully read to MwmInfo.
virtual MwmInfo * CreateInfo(platform::LocalCountryFile const & localFile) const = 0;
@@ -216,6 +218,9 @@ protected:
private:
typedef deque<pair<MwmId, TMwmValueBasePtr>> CacheType;
+ /// @precondition This function is always called under mutex m_lock.
+ MwmHandle GetMwmHandleByIdImpl(MwmId const & id);
+
TMwmValueBasePtr LockValue(MwmId const & id);
TMwmValueBasePtr LockValueImpl(MwmId const & id);
void UnlockValue(MwmId const & id, TMwmValueBasePtr p);