diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-08-04 20:28:25 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:05 +0300 |
commit | 6c01695c6ad25587793daa4cdf89a2ff0eef0660 (patch) | |
tree | c309b2750bdaec8088482a034a34759a375389ff /routing | |
parent | a44d56c751326ff908fd992f1c2798bf2b6efd27 (diff) |
Fixed notes
Diffstat (limited to 'routing')
-rw-r--r-- | routing/async_router.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/routing/async_router.cpp b/routing/async_router.cpp index 75d5dc4d09..453a2fb6cd 100644 --- a/routing/async_router.cpp +++ b/routing/async_router.cpp @@ -78,9 +78,11 @@ void AsyncRouter::RouterDelegateProxy::OnReady(Route & route, IRouter::ResultCod { if (!m_onReady) return; - lock_guard<mutex> l(m_guard); - if (m_delegate.IsCancelled()) - return; + { + lock_guard<mutex> l(m_guard); + if (m_delegate.IsCancelled()) + return; + } m_onReady(route, resultCode); } @@ -94,9 +96,11 @@ void AsyncRouter::RouterDelegateProxy::OnProgress(float progress) { if (!m_onProgress) return; - lock_guard<mutex> l(m_guard); - if (m_delegate.IsCancelled()) - return; + { + lock_guard<mutex> l(m_guard); + if (m_delegate.IsCancelled()) + return; + } m_onProgress(progress); } @@ -104,9 +108,11 @@ void AsyncRouter::RouterDelegateProxy::OnPointCheck(m2::PointD const & pt) { if (!m_onPointCheck) return; - lock_guard<mutex> l(m_guard); - if (m_delegate.IsCancelled()) - return; + { + lock_guard<mutex> l(m_guard); + if (m_delegate.IsCancelled()) + return; + } m_onPointCheck(pt); } |