diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-09 19:31:20 +0300 |
---|---|---|
committer | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-09 19:31:26 +0300 |
commit | 814f8ba8575a1e5a135200d21d66bf5fb4232569 (patch) | |
tree | 2a8342180607c87da81a95364e8478665670ec45 /indexer/mwm_set.hpp | |
parent | f35e9c04e772b055de12f96fbaeb2604be86d1ec (diff) |
Atomic status for a MwmSet.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r-- | indexer/mwm_set.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<Status> m_status; ///< Current country status. uint8_t m_numRefs; ///< Number of active handles. }; |