forked from organicmaps/organicmaps
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:
commit
6435be5c64
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue