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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-07-21 17:58:51 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-07-24 15:53:44 +0300
commitda5d207c6059d28ce7024a61dbf042068722686b (patch)
tree3f86973107d72e582cb303ac82e56e93258342d1 /indexer/map_style_reader.hpp
parent6ec5e57f28bb5562c17d59a9b127ff46d1329b83 (diff)
Fixed data race in drape engine
Diffstat (limited to 'indexer/map_style_reader.hpp')
-rw-r--r--indexer/map_style_reader.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/map_style_reader.hpp b/indexer/map_style_reader.hpp
index 498f370d1e..0a6eef549f 100644
--- a/indexer/map_style_reader.hpp
+++ b/indexer/map_style_reader.hpp
@@ -4,6 +4,7 @@
#include "map_style.hpp"
+#include <atomic>
#include <string>
class StyleReader
@@ -21,7 +22,7 @@ public:
ReaderPtr<Reader> GetDefaultResourceReader(std::string const & file) const;
private:
- MapStyle m_mapStyle;
+ std::atomic<MapStyle> m_mapStyle;
};
extern StyleReader & GetStyleReader();