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
path: root/editor
diff options
context:
space:
mode:
authorDmitry Yunitsky <yunik@mapswithme.com>2016-06-03 12:53:16 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-24 13:31:45 +0300
commit19820ead7c25985f87312421dba58700127aa10c (patch)
treee22b2aef572972fdf24bc7ffd340eb1fa1807c96 /editor
parent22fa820501e22dcf57ae51d7287b9361138d7233 (diff)
Used SimpleThread to allow RunOnGuiThread calls.
Diffstat (limited to 'editor')
-rw-r--r--editor/user_stats.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp
index e380cc2bad..1b3b7f89e7 100644
--- a/editor/user_stats.cpp
+++ b/editor/user_stats.cpp
@@ -6,10 +6,9 @@
#include "coding/url_encode.hpp"
#include "base/logging.hpp"
+#include "base/thread.hpp"
#include "base/timer.hpp"
-#include "std/thread.hpp"
-
#include "3party/Alohalytics/src/http_client.h"
#include "3party/pugixml/src/pugixml.hpp"
@@ -144,7 +143,7 @@ void UserStatsLoader::Update(string const & userName, UpdatePolicy const policy,
return;
}
- thread([this, userName, fn] {
+ threads::SimpleThread([this, userName, fn] {
if (Update(userName))
GetPlatform().RunOnGuiThread(fn);
}).detach();