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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-11-09 15:42:23 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2017-11-14 11:18:31 +0300
commitebbdd625ceecf12f4f9386aec821795365b13104 (patch)
tree3cab866849d54fbc545cca6c5e42190d10e2380b /storage
parent6e9b384489e89ef9c8428710a1d9913de06f18df (diff)
Review fixes
Diffstat (limited to 'storage')
-rw-r--r--storage/diff_scheme/diff_manager.cpp2
-rw-r--r--storage/downloading_policy.cpp2
-rw-r--r--storage/storage.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/storage/diff_scheme/diff_manager.cpp b/storage/diff_scheme/diff_manager.cpp
index d6dfcb63df..159acd1e10 100644
--- a/storage/diff_scheme/diff_manager.cpp
+++ b/storage/diff_scheme/diff_manager.cpp
@@ -41,7 +41,7 @@ void Manager::Load(LocalMapsInfo && info)
auto & observers = m_observers;
auto status = m_status;
- GetPlatform().RunOnGuiThread([observers, status]() mutable {
+ GetPlatform().RunTask(Platform::Thread::Gui, [observers, status]() mutable {
observers.ForEach(&Observer::OnDiffStatusReceived, status);
});
});
diff --git a/storage/downloading_policy.cpp b/storage/downloading_policy.cpp
index 758f152af8..533e56490a 100644
--- a/storage/downloading_policy.cpp
+++ b/storage/downloading_policy.cpp
@@ -32,7 +32,7 @@ void StorageDownloadingPolicy::ScheduleRetry(storage::TCountriesSet const & fail
--m_autoRetryCounter;
func(failedCountries);
};
- m_autoRetryWorker.RestartWith([action]{ GetPlatform().RunOnGuiThread(action); });
+ m_autoRetryWorker.RestartWith([action]{ GetPlatform().RunTask(Platform::Thread::Gui, action); });
}
else
{
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 585812a74b..2455e2d38f 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -1422,7 +1422,7 @@ void Storage::ApplyDiff(TCountryId const & countryId, function<void(bool isSucce
m_diffManager.ApplyDiff(move(params), [this, fn, diffFile] (bool const result)
{
- GetPlatform().RunOnGuiThread([this, fn, diffFile, result]
+ GetPlatform().RunTask(Platform::Thread::Gui, [this, fn, diffFile, result]
{
if (result)
{