Merge pull request #417 from bykoianko/making-m_state-as-atomic

Bugfix. Using atomic instead of direct calls for RoutingSession::m_state which is used at least from 3 threads.
This commit is contained in:
ygorshenin 2015-11-09 16:02:04 +03:00
commit 6435be5c64

View file

@ -14,6 +14,7 @@
#include "base/deferred_task.hpp"
#include "base/mutex.hpp"
#include "std/atomic.hpp"
#include "std/limits.hpp"
#include "std/unique_ptr.hpp"
@ -144,7 +145,7 @@ private:
private:
unique_ptr<AsyncRouter> m_router;
Route m_route;
State m_state;
atomic<State> m_state;
m2::PointD m_endPoint;
size_t m_lastWarnedSpeedCameraIndex;
SpeedCameraRestriction m_lastFoundCamera;