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:
authorSergey Yershov <syershov@maps.me>2016-12-14 18:27:14 +0300
committerSergey Yershov <syershov@maps.me>2016-12-14 18:27:14 +0300
commitae84aae5fbc65e7dc9f4660c1f7d765e63001457 (patch)
tree8729b97909d881902aa17a23fcb828d1c4cd2f54 /tracking/reporter.hpp
parentee087914bb9426825635d8ef7d8bf5feebc80a79 (diff)
Make bool atomic to avoid data race
Diffstat (limited to 'tracking/reporter.hpp')
-rw-r--r--tracking/reporter.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracking/reporter.hpp b/tracking/reporter.hpp
index c013bc021a..7eb1ce3f6d 100644
--- a/tracking/reporter.hpp
+++ b/tracking/reporter.hpp
@@ -45,7 +45,7 @@ private:
void Run();
bool SendPoints();
- bool m_allowSendingPoints = true;
+ atomic<bool> m_allowSendingPoints;
Connection m_realtimeSender;
milliseconds m_pushDelay;
bool m_wasConnected = false;