diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-06-26 12:04:04 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-07-05 15:43:59 +0300 |
commit | 58eac31ae5d5c8f57a7a367833aa89debcd56c14 (patch) | |
tree | 46c5bd9ba6476a4f9ace7e1b3f77608dad2c48e0 /routing/async_router.hpp | |
parent | 9377f301603427a3f4f97db3129fa8a847ff377d (diff) |
RoutingSession::m_routingSettings correct initialization. RoutingSession membors initialization. Review fixes.
Diffstat (limited to 'routing/async_router.hpp')
-rw-r--r-- | routing/async_router.hpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/routing/async_router.hpp b/routing/async_router.hpp index 3b03820456..0ea19d7671 100644 --- a/routing/async_router.hpp +++ b/routing/async_router.hpp @@ -72,7 +72,7 @@ private: public: RouterDelegateProxy(ReadyCallbackOwnership const & onReady, NeedMoreMapsCallback const & onNeedMoreMaps, - RemoveRouteCallback const & removeRoute, + RemoveRouteCallback const & onRemoveRoute, PointCheckCallback const & onPointCheck, ProgressCallback const & onProgress, uint32_t timeoutSec); @@ -94,21 +94,12 @@ private: // - it's possible to build route only if to load some maps // - there's a faster route, but it's necessary to load some more maps to build it NeedMoreMapsCallback const m_onNeedMoreMaps; - RemoveRouteCallback const m_removeRoute; + RemoveRouteCallback const m_onRemoveRoute; PointCheckCallback const m_onPointCheck; ProgressCallback const m_onProgress; RouterDelegate m_delegate; }; - void RunOnReadyOnGuiThread(shared_ptr<RouterDelegateProxy> delegate, shared_ptr<Route> route, - RouterResultCode code); - - template <typename Task> - void RunOnGuiThread(Task && task) - { - GetPlatform().RunTask(Platform::Thread::Gui, std::forward<Task>(task)); - } - private: std::mutex m_guard; |