From 814f8ba8575a1e5a135200d21d66bf5fb4232569 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Fri, 9 Oct 2015 19:31:20 +0300 Subject: [PATCH] Atomic status for a MwmSet. --- indexer/mwm_set.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp index 652d4be163..9700264be8 100644 --- a/indexer/mwm_set.hpp +++ b/indexer/mwm_set.hpp @@ -8,6 +8,7 @@ #include "base/macros.hpp" +#include "std/atomic.hpp" #include "std/deque.hpp" #include "std/map.hpp" #include "std/mutex.hpp" @@ -71,7 +72,7 @@ private: inline void SetStatus(Status status) { m_status = status; } platform::LocalCountryFile m_file; ///< Path to the mwm file. - Status m_status; ///< Current country status. + atomic m_status; ///< Current country status. uint8_t m_numRefs; ///< Number of active handles. };