| 159 | } |
| 160 | |
| 161 | void AsyncRouter::CalculateRoute(Checkpoints const & checkpoints, m2::PointD const & direction, bool adjustToPrevRoute, |
| 162 | ReadyCallbackOwnership const & readyCallback, |
| 163 | NeedMoreMapsCallback const & needMoreMapsCallback, |
| 164 | RemoveRouteCallback const & removeRouteCallback, |
| 165 | ProgressCallback const & progressCallback, uint32_t timeoutSec) |
| 166 | { |
| 167 | unique_lock ul(m_guard); |
| 168 | |
| 169 | m_checkpoints = checkpoints; |
| 170 | m_startDirection = direction; |
| 171 | m_adjustToPrevRoute = adjustToPrevRoute; |
| 172 | |
| 173 | ResetDelegate(); |
| 174 | |
| 175 | m_delegateProxy = std::make_shared<RouterDelegateProxy>(readyCallback, needMoreMapsCallback, removeRouteCallback, |
| 176 | m_pointCheckCallback, progressCallback, timeoutSec); |
| 177 | |
| 178 | m_hasRequest = true; |
| 179 | m_threadCondVar.notify_one(); |
| 180 | } |
| 181 | |
| 182 | void AsyncRouter::SetGuidesTracks(GuidesTracks && guides) |
| 183 | { |
no test coverage detected