Skip to content

Commit

Permalink
Renaming isTwoThreadsReady paramter to twoThreadsReady.
Browse files Browse the repository at this point in the history
  • Loading branch information
bykoianko committed Nov 18, 2020
1 parent 0b61797 commit e24acc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions routing/index_graph_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using namespace std;
class IndexGraphLoaderImpl final : public IndexGraphLoader
{
public:
IndexGraphLoaderImpl(VehicleType vehicleType, bool loadAltitudes, bool isTwoThreadsReady,
IndexGraphLoaderImpl(VehicleType vehicleType, bool loadAltitudes, bool twoThreadsReady,
shared_ptr<NumMwmIds> numMwmIds,
shared_ptr<VehicleModelFactoryInterface> vehicleModelFactory,
shared_ptr<EdgeEstimator> estimator, DataSource & dataSource,
Expand Down Expand Up @@ -85,7 +85,7 @@ class IndexGraphLoaderImpl final : public IndexGraphLoader
};

IndexGraphLoaderImpl::IndexGraphLoaderImpl(
VehicleType vehicleType, bool loadAltitudes, bool isTwoThreadsReady, shared_ptr<NumMwmIds> numMwmIds,
VehicleType vehicleType, bool loadAltitudes, bool twoThreadsReady, shared_ptr<NumMwmIds> numMwmIds,
shared_ptr<VehicleModelFactoryInterface> vehicleModelFactory,
shared_ptr<EdgeEstimator> estimator, DataSource & dataSource,
RoutingOptions routingOptions)
Expand All @@ -95,7 +95,7 @@ IndexGraphLoaderImpl::IndexGraphLoaderImpl(
, m_numMwmIds(move(numMwmIds))
, m_vehicleModelFactory(move(vehicleModelFactory))
, m_estimator(move(estimator))
, m_graphsMtx(isTwoThreadsReady ? std::make_optional<std::mutex>() : std::nullopt)
, m_graphsMtx(twoThreadsReady ? std::make_optional<std::mutex>() : std::nullopt)
, m_avoidRoutingOptions(routingOptions)
{
CHECK(m_numMwmIds, ());
Expand Down Expand Up @@ -274,12 +274,12 @@ namespace routing
{
// static
unique_ptr<IndexGraphLoader> IndexGraphLoader::Create(
VehicleType vehicleType, bool loadAltitudes, bool isTwoThreadsReady, shared_ptr<NumMwmIds> numMwmIds,
VehicleType vehicleType, bool loadAltitudes, bool twoThreadsReady, shared_ptr<NumMwmIds> numMwmIds,
shared_ptr<VehicleModelFactoryInterface> vehicleModelFactory,
shared_ptr<EdgeEstimator> estimator, DataSource & dataSource,
RoutingOptions routingOptions)
{
return make_unique<IndexGraphLoaderImpl>(vehicleType, loadAltitudes, isTwoThreadsReady, numMwmIds,
return make_unique<IndexGraphLoaderImpl>(vehicleType, loadAltitudes, twoThreadsReady, numMwmIds,
vehicleModelFactory, estimator, dataSource,
routingOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion routing/index_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ RouterResultCode IndexRouter::AdjustRoute(Checkpoints const & checkpoints,
{
base::Timer timer;
TrafficStash::Guard guard(m_trafficStash);
auto graph = MakeWorldGraph(false /* isTwoThreadsReady */);
auto graph = MakeWorldGraph(false /* twoThreadsReady */);
graph->SetMode(WorldGraphMode::NoLeaps);

vector<Segment> startSegments;
Expand Down

0 comments on commit e24acc7

Please sign in to comment.