From 789311abd6ab574d2797a134eb9b6e911bd6d8c7 Mon Sep 17 00:00:00 2001 From: Pepijn Schoen Date: Tue, 4 Apr 2017 09:52:00 +0200 Subject: [PATCH] Remove osrm namespace indication where possible, wrap out shared_memory_ownership --- include/customizer/edge_based_graph.hpp | 11 +++++----- .../contiguous_internalmem_datafacade.hpp | 22 ++++++++----------- include/extractor/segment_data_container.hpp | 14 ++++++------ include/partition/cell_storage.hpp | 20 ++++++++--------- include/partition/io.hpp | 6 ++--- include/partition/multi_level_graph.hpp | 10 ++++----- include/partition/multi_level_partition.hpp | 18 +++++++-------- include/storage/shared_memory.hpp | 8 ++----- include/storage/shared_memory_ownership.hpp | 17 ++++++++++++++ include/util/packed_vector.hpp | 22 +++++++++---------- include/util/range_table.hpp | 21 +++++++++--------- include/util/shared_memory_vector_wrapper.hpp | 6 ++--- include/util/static_graph.hpp | 5 ++--- include/util/static_rtree.hpp | 6 ++--- src/benchmarks/static_rtree.cpp | 8 +++---- src/customize/customizer.cpp | 4 ++-- src/storage/storage.cpp | 20 ++++++++--------- src/tools/store.cpp | 2 +- src/updater/updater.cpp | 2 +- 19 files changed, 114 insertions(+), 108 deletions(-) create mode 100644 include/storage/shared_memory_ownership.hpp diff --git a/include/customizer/edge_based_graph.hpp b/include/customizer/edge_based_graph.hpp index 02ceeb16b..6dfa28aff 100644 --- a/include/customizer/edge_based_graph.hpp +++ b/include/customizer/edge_based_graph.hpp @@ -7,7 +7,7 @@ #include "util/static_graph.hpp" #include "util/typedefs.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include @@ -19,17 +19,16 @@ namespace customizer using EdgeBasedGraphEdgeData = partition::EdgeBasedGraphEdgeData; struct MultiLevelEdgeBasedGraph - : public partition::MultiLevelGraph + : public partition::MultiLevelGraph { - using Base = - partition::MultiLevelGraph; + using Base = partition::MultiLevelGraph; using Base::Base; }; struct MultiLevelEdgeBasedGraphView - : public partition::MultiLevelGraph + : public partition::MultiLevelGraph { - using Base = partition::MultiLevelGraph; + using Base = partition::MultiLevelGraph; using Base::Base; }; diff --git a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp index f6bcf67bf..4f3974fb4 100644 --- a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp +++ b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp @@ -20,7 +20,7 @@ #include "partition/multi_level_partition.hpp" #include "storage/shared_datatype.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include "util/exception.hpp" #include "util/exception_utils.hpp" @@ -62,7 +62,7 @@ class ContiguousInternalMemoryAlgorithmDataFacade : public datafacade::AlgorithmDataFacade { private: - using QueryGraph = util::StaticGraph; + using QueryGraph = util::StaticGraph; using GraphNode = QueryGraph::NodeArrayEntry; using GraphEdge = QueryGraph::EdgeArrayEntry; @@ -200,11 +200,10 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade { private: using super = BaseDataFacade; - using IndexBlock = util::RangeTable<16, osrm::storage::Ownership::View>::BlockT; + using IndexBlock = util::RangeTable<16, storage::Ownership::View>::BlockT; using RTreeLeaf = super::RTreeLeaf; - using SharedRTree = util::StaticRTree, - osrm::storage::Ownership::View>; + using SharedRTree = + util::StaticRTree, storage::Ownership::View>; using SharedGeospatialQuery = GeospatialQuery; using RTreeNode = SharedRTree::TreeNode; @@ -214,7 +213,7 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade unsigned m_check_sum; util::vector_view m_coordinate_list; - util::PackedVector m_osmnodeid_list; + util::PackedVector m_osmnodeid_list; util::vector_view m_via_geometry_list; util::vector_view m_name_ID_list; util::vector_view m_lane_data_id; @@ -251,7 +250,7 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade util::vector_view m_entry_class_table; // the look-up table for distinct bearing classes. A bearing class lists the available bearings // at an intersection - std::shared_ptr> m_bearing_ranges_table; + std::shared_ptr> m_bearing_ranges_table; util::vector_view m_bearing_values_table; // allocator that keeps the allocation data @@ -503,11 +502,8 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade util::vector_view bearing_blocks( blocks_ptr, data_layout.num_entries[storage::DataLayout::BEARING_BLOCKS]); - m_bearing_ranges_table = - std::make_unique>( - bearing_offsets, - bearing_blocks, - static_cast(m_bearing_values_table.size())); + m_bearing_ranges_table = std::make_unique>( + bearing_offsets, bearing_blocks, static_cast(m_bearing_values_table.size())); auto entry_class_ptr = data_layout.GetBlockPtr( memory_block, storage::DataLayout::ENTRY_CLASS); diff --git a/include/extractor/segment_data_container.hpp b/include/extractor/segment_data_container.hpp index 6fd63bbbd..b6b221773 100644 --- a/include/extractor/segment_data_container.hpp +++ b/include/extractor/segment_data_container.hpp @@ -4,7 +4,7 @@ #include "util/shared_memory_vector_wrapper.hpp" #include "util/typedefs.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -24,22 +24,22 @@ class CompressedEdgeContainer; namespace detail { -template class SegmentDataContainerImpl; +template class SegmentDataContainerImpl; } namespace io { -template +template inline void read(const boost::filesystem::path &path, detail::SegmentDataContainerImpl &segment_data); -template +template inline void write(const boost::filesystem::path &path, const detail::SegmentDataContainerImpl &segment_data); } namespace detail { -template class SegmentDataContainerImpl +template class SegmentDataContainerImpl { template using Vector = typename util::ShM::vector; @@ -207,8 +207,8 @@ template class SegmentDataContainerImpl }; } -using SegmentDataView = detail::SegmentDataContainerImpl; -using SegmentDataContainer = detail::SegmentDataContainerImpl; +using SegmentDataView = detail::SegmentDataContainerImpl; +using SegmentDataContainer = detail::SegmentDataContainerImpl; } } diff --git a/include/partition/cell_storage.hpp b/include/partition/cell_storage.hpp index c49257f12..414603378 100644 --- a/include/partition/cell_storage.hpp +++ b/include/partition/cell_storage.hpp @@ -10,7 +10,7 @@ #include "util/typedefs.hpp" #include "storage/io.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -27,23 +27,23 @@ namespace partition { namespace detail { -template class CellStorageImpl; +template class CellStorageImpl; } -using CellStorage = detail::CellStorageImpl; -using CellStorageView = detail::CellStorageImpl; +using CellStorage = detail::CellStorageImpl; +using CellStorageView = detail::CellStorageImpl; namespace io { -template +template inline void read(const boost::filesystem::path &path, detail::CellStorageImpl &storage); -template +template inline void write(const boost::filesystem::path &path, const detail::CellStorageImpl &storage); } namespace detail { -template class CellStorageImpl +template class CellStorageImpl { public: using WeightOffset = std::uint32_t; @@ -186,7 +186,7 @@ template class CellStorageImpl CellStorageImpl() {} template > + typename = std::enable_if> CellStorageImpl(const partition::MultiLevelPartition &partition, const GraphT &base_graph) { // pre-allocate storge for CellData so we can have random access to it by cell id @@ -315,7 +315,7 @@ template class CellStorageImpl weights.resize(weight_offset + 1, INVALID_EDGE_WEIGHT); } - template > + template > CellStorageImpl(Vector weights_, Vector source_boundary_, Vector destination_boundary_, @@ -340,7 +340,7 @@ template class CellStorageImpl destination_boundary.empty() ? nullptr : destination_boundary.data()}; } - template > + template > Cell GetCell(LevelID level, CellID id) { const auto level_index = LevelIDToIndex(level); diff --git a/include/partition/io.hpp b/include/partition/io.hpp index ac4b6baae..8ca76ffd1 100644 --- a/include/partition/io.hpp +++ b/include/partition/io.hpp @@ -7,7 +7,7 @@ #include "partition/multi_level_partition.hpp" #include "storage/io.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" namespace osrm { @@ -16,7 +16,7 @@ namespace partition namespace io { -template +template inline void read(const boost::filesystem::path &path, MultiLevelGraph &graph) { const auto fingerprint = storage::io::FileReader::VerifyFingerprint; @@ -27,7 +27,7 @@ inline void read(const boost::filesystem::path &path, MultiLevelGraph +template inline void write(const boost::filesystem::path &path, const MultiLevelGraph &graph) { diff --git a/include/partition/multi_level_graph.hpp b/include/partition/multi_level_graph.hpp index cf3f499a5..f61be06cf 100644 --- a/include/partition/multi_level_graph.hpp +++ b/include/partition/multi_level_graph.hpp @@ -3,7 +3,7 @@ #include "partition/multi_level_partition.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include "util/static_graph.hpp" @@ -16,18 +16,18 @@ namespace osrm { namespace partition { -template class MultiLevelGraph; +template class MultiLevelGraph; namespace io { -template +template void read(const boost::filesystem::path &path, MultiLevelGraph &graph); -template +template void write(const boost::filesystem::path &path, const MultiLevelGraph &graph); } -template +template class MultiLevelGraph : public util::StaticGraph { private: diff --git a/include/partition/multi_level_partition.hpp b/include/partition/multi_level_partition.hpp index 332e089bb..c9914e9ec 100644 --- a/include/partition/multi_level_partition.hpp +++ b/include/partition/multi_level_partition.hpp @@ -8,7 +8,7 @@ #include "util/typedefs.hpp" #include "storage/io.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -26,16 +26,16 @@ namespace partition { namespace detail { -template class MultiLevelPartitionImpl; +template class MultiLevelPartitionImpl; } -using MultiLevelPartition = detail::MultiLevelPartitionImpl; -using MultiLevelPartitionView = detail::MultiLevelPartitionImpl; +using MultiLevelPartition = detail::MultiLevelPartitionImpl; +using MultiLevelPartitionView = detail::MultiLevelPartitionImpl; namespace io { -template +template void read(const boost::filesystem::path &file, detail::MultiLevelPartitionImpl &mlp); -template +template void write(const boost::filesystem::path &file, const detail::MultiLevelPartitionImpl &mlp); } @@ -43,7 +43,7 @@ void write(const boost::filesystem::path &file, namespace detail { -template class MultiLevelPartitionImpl final +template class MultiLevelPartitionImpl final { // we will support at most 16 levels static const constexpr std::uint8_t MAX_NUM_LEVEL = 16; @@ -68,7 +68,7 @@ template class MultiLevelPartitionImpl fina // cell_sizes is index by level (starting at 0, the base graph). // However level 0 always needs to have cell size 1, since it is the // basegraph. - template > + template > MultiLevelPartitionImpl(const std::vector> &partitions, const std::vector &lidx_to_num_cells) : level_data(MakeLevelData(lidx_to_num_cells)) @@ -76,7 +76,7 @@ template class MultiLevelPartitionImpl fina InitializePartitionIDs(partitions); } - template > + template > MultiLevelPartitionImpl(LevelData level_data, Vector partition_, Vector cell_to_children_) diff --git a/include/storage/shared_memory.hpp b/include/storage/shared_memory.hpp index 7a3d369c6..a3ced80d2 100644 --- a/include/storage/shared_memory.hpp +++ b/include/storage/shared_memory.hpp @@ -25,17 +25,13 @@ #include #include +#include "storage/shared_memory_ownership.hpp" + namespace osrm { namespace storage { -enum class Ownership -{ - Container, - View -}; - struct OSRMLockFile { boost::filesystem::path operator()() diff --git a/include/storage/shared_memory_ownership.hpp b/include/storage/shared_memory_ownership.hpp new file mode 100644 index 000000000..f3d6c8a41 --- /dev/null +++ b/include/storage/shared_memory_ownership.hpp @@ -0,0 +1,17 @@ +#ifndef SHARED_MEMORY_OWNERSHIP_HPP +#define SHARED_MEMORY_OWNERSHIP_HPP + +namespace osrm +{ +namespace storage +{ + +enum class Ownership +{ + Container, + View +}; +} +} + +#endif // SHARED_MEMORY_OWNERSHIP_HPP diff --git a/include/util/packed_vector.hpp b/include/util/packed_vector.hpp index b1f9922c4..de5d5de84 100644 --- a/include/util/packed_vector.hpp +++ b/include/util/packed_vector.hpp @@ -4,7 +4,7 @@ #include "util/shared_memory_vector_wrapper.hpp" #include "util/typedefs.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -22,7 +22,7 @@ namespace util * NOTE: this type is templated for future use, but will require a slight refactor to * configure BITSIZE and ELEMSIZE */ -template +template class PackedVector { static const constexpr std::size_t BITSIZE = 33; @@ -123,20 +123,20 @@ class PackedVector std::size_t size() const { return num_elements; } - template + template void reserve(typename std::enable_if::type capacity) { vec.reserve(elements_to_blocks(capacity)); } - template + template void reset(typename std::enable_if::type *ptr, typename std::enable_if::type size) { vec.reset(ptr, size); } - template + template void set_number_of_entries(typename std::enable_if::type count) { num_elements = count; @@ -154,38 +154,38 @@ class PackedVector signed cursor = -1; - template + template void replace_last_elem(typename std::enable_if::type last_elem) { vec[cursor] = last_elem; } - template + template void replace_last_elem(typename std::enable_if::type last_elem) { vec.back() = last_elem; } - template + template void add_last_elem(typename std::enable_if::type last_elem) { vec[cursor + 1] = last_elem; cursor++; } - template + template void add_last_elem(typename std::enable_if::type last_elem) { vec.push_back(last_elem); } - template + template std::uint64_t vec_back(typename std::enable_if::type * = nullptr) { return vec[cursor]; } - template + template std::uint64_t vec_back(typename std::enable_if::type * = nullptr) { return vec.back(); diff --git a/include/util/range_table.hpp b/include/util/range_table.hpp index baefd40b2..190686746 100644 --- a/include/util/range_table.hpp +++ b/include/util/range_table.hpp @@ -2,7 +2,7 @@ #define RANGE_TABLE_HPP #include "storage/io.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include "util/integer_range.hpp" #include "util/shared_memory_vector_wrapper.hpp" @@ -19,14 +19,13 @@ namespace util * and otherwise the compiler gets confused. */ -template +template class RangeTable; -template +template std::ostream &operator<<(std::ostream &out, const RangeTable &table); -template +template std::istream &operator>>(std::istream &in, RangeTable &table); /** @@ -38,7 +37,7 @@ std::istream &operator>>(std::istream &in, RangeTable &ta * But each block consists of an absolute value and BLOCK_SIZE differential values. * So the effective block size is sizeof(unsigned) + BLOCK_SIZE. */ -template class RangeTable +template class RangeTable { public: using BlockT = std::array; @@ -142,7 +141,7 @@ template class RangeTa sum_lengths = lengths_prefix_sum; } - void Write(osrm::storage::io::FileWriter &filewriter) + void Write(storage::io::FileWriter &filewriter) { unsigned number_of_blocks = diff_blocks.size(); @@ -154,7 +153,7 @@ template class RangeTa filewriter.WriteFrom(diff_blocks.data(), number_of_blocks); } - void Read(osrm::storage::io::FileReader &filereader) + void Read(storage::io::FileReader &filereader) { unsigned number_of_blocks = filereader.ReadElementCount32(); // read total length @@ -215,7 +214,7 @@ template class RangeTa unsigned sum_lengths; }; -template +template unsigned RangeTable::PrefixSumAtIndex(int index, const BlockT &block) const { // this loop looks inefficent, but a modern compiler @@ -229,7 +228,7 @@ unsigned RangeTable::PrefixSumAtIndex(int index, const Bl return sum; } -template +template std::ostream &operator<<(std::ostream &out, const RangeTable &table) { // write number of block @@ -245,7 +244,7 @@ std::ostream &operator<<(std::ostream &out, const RangeTable +template std::istream &operator>>(std::istream &in, RangeTable &table) { // read number of block diff --git a/include/util/shared_memory_vector_wrapper.hpp b/include/util/shared_memory_vector_wrapper.hpp index b2e449443..6c095da97 100644 --- a/include/util/shared_memory_vector_wrapper.hpp +++ b/include/util/shared_memory_vector_wrapper.hpp @@ -3,7 +3,7 @@ #include "util/log.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -172,9 +172,9 @@ template void swap(vector_view &lhs, vector_view std::swap(lhs.m_size, rhs.m_size); } -template struct ShM +template struct ShM { - using vector = typename std::conditional, std::vector>::type; }; diff --git a/include/util/static_graph.hpp b/include/util/static_graph.hpp index a5915f320..133c9140f 100644 --- a/include/util/static_graph.hpp +++ b/include/util/static_graph.hpp @@ -7,7 +7,7 @@ #include "util/shared_memory_vector_wrapper.hpp" #include "util/typedefs.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include @@ -99,8 +99,7 @@ EntryT edgeToEntry(const OtherEdge &from, std::false_type) } // namespace static_graph_details -template +template class StaticGraph { public: diff --git a/include/util/static_rtree.hpp b/include/util/static_rtree.hpp index 7a46020ca..d9369cb5a 100644 --- a/include/util/static_rtree.hpp +++ b/include/util/static_rtree.hpp @@ -15,7 +15,7 @@ #include "osrm/coordinate.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include #include @@ -54,7 +54,7 @@ namespace util // are computed, this means the internal distance metric doesn not represent meters! template , - osrm::storage::Ownership Ownership = osrm::storage::Ownership::Container, + storage::Ownership Ownership = storage::Ownership::Container, std::uint32_t BRANCHING_FACTOR = 128, std::uint32_t LEAF_PAGE_SIZE = 4096> class StaticRTree @@ -159,7 +159,7 @@ class StaticRTree boost::iostreams::mapped_file_source m_leaves_region; // read-only view of leaves - typename ShM::vector m_leaves; + typename ShM::vector m_leaves; public: StaticRTree(const StaticRTree &) = delete; diff --git a/src/benchmarks/static_rtree.cpp b/src/benchmarks/static_rtree.cpp index e33f88ab1..803ca7fe1 100644 --- a/src/benchmarks/static_rtree.cpp +++ b/src/benchmarks/static_rtree.cpp @@ -29,13 +29,13 @@ constexpr int32_t WORLD_MAX_LON = 180 * COORDINATE_PRECISION; using RTreeLeaf = extractor::EdgeBasedNode; using BenchStaticRTree = util::StaticRTree::vector, - osrm::storage::Ownership::Container>; + util::ShM::vector, + storage::Ownership::Container>; std::vector loadCoordinates(const boost::filesystem::path &nodes_file) { - osrm::storage::io::FileReader nodes_path_file_reader( - nodes_file, osrm::storage::io::FileReader::HasNoFingerprint); + storage::io::FileReader nodes_path_file_reader(nodes_file, + storage::io::FileReader::HasNoFingerprint); extractor::QueryNode current_node; unsigned coordinate_count = nodes_path_file_reader.ReadElementCount32(); diff --git a/src/customize/customizer.cpp b/src/customize/customizer.cpp index ca5ad978f..c9c7c3b63 100644 --- a/src/customize/customizer.cpp +++ b/src/customize/customizer.cpp @@ -8,7 +8,7 @@ #include "partition/io.hpp" #include "partition/multi_level_partition.hpp" -#include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include "updater/updater.hpp" @@ -85,7 +85,7 @@ auto LoadAndUpdateEdgeExpandedGraph(const CustomizationConfig &config, auto tidied = partition::prepareEdgesForUsageInGraph(std::move(directed)); auto edge_based_graph = std::make_unique< - partition::MultiLevelGraph>( + partition::MultiLevelGraph>( mlp, num_nodes, std::move(tidied)); util::Log() << "Loaded edge based graph for mapping partition ids: " diff --git a/src/storage/storage.cpp b/src/storage/storage.cpp index 62cd226de..bbf5ff288 100644 --- a/src/storage/storage.cpp +++ b/src/storage/storage.cpp @@ -16,6 +16,7 @@ #include "storage/serialization.hpp" #include "storage/shared_datatype.hpp" #include "storage/shared_memory.hpp" +#include "storage/shared_memory_ownership.hpp" #include "storage/shared_monitor.hpp" #include "engine/datafacade/datafacade_base.hpp" #include "util/coordinate.hpp" @@ -57,7 +58,7 @@ namespace storage using RTreeLeaf = engine::datafacade::BaseDataFacade::RTreeLeaf; using RTreeNode = util::StaticRTree, - osrm::storage::Ownership::View>::TreeNode; + storage::Ownership::View>::TreeNode; using QueryGraph = util::StaticGraph; using EdgeBasedGraph = util::StaticGraph; @@ -365,14 +366,13 @@ void Storage::PopulateLayout(DataLayout &layout) intersection_file.Skip(1); // sum_lengths layout.SetBlockSize(DataLayout::BEARING_OFFSETS, bearing_blocks); - layout.SetBlockSize::BlockT>( + layout.SetBlockSize::BlockT>( DataLayout::BEARING_BLOCKS, bearing_blocks); // No need to read the data intersection_file.Skip(bearing_blocks); - intersection_file - .Skip::BlockT>( - bearing_blocks); + intersection_file.Skip::BlockT>( + bearing_blocks); const auto num_bearings = intersection_file.ReadElementCount64(); @@ -697,7 +697,7 @@ void Storage::PopulateData(const DataLayout &layout, char *memory_ptr) layout.GetBlockPtr(memory_ptr, DataLayout::COORDINATE_LIST); const auto osmnodeid_ptr = layout.GetBlockPtr(memory_ptr, DataLayout::OSM_NODE_ID_LIST); - util::PackedVector osmnodeid_list; + util::PackedVector osmnodeid_list; osmnodeid_list.reset(osmnodeid_ptr, layout.num_entries[DataLayout::OSM_NODE_ID_LIST]); @@ -806,7 +806,7 @@ void Storage::PopulateData(const DataLayout &layout, char *memory_ptr) intersection_file.Skip(1); // sum_lengths std::vector bearing_offsets_data(bearing_blocks); - std::vector::BlockT> + std::vector::BlockT> bearing_blocks_data(bearing_blocks); intersection_file.ReadInto(bearing_offsets_data.data(), bearing_blocks); @@ -846,9 +846,9 @@ void Storage::PopulateData(const DataLayout &layout, char *memory_ptr) if (layout.GetBlockSize(DataLayout::BEARING_BLOCKS) > 0) { - const auto bearing_blocks_ptr = layout.GetBlockPtr< - typename util::RangeTable<16, osrm::storage::Ownership::View>::BlockT, - true>(memory_ptr, DataLayout::BEARING_BLOCKS); + const auto bearing_blocks_ptr = + layout.GetBlockPtr::BlockT, + true>(memory_ptr, DataLayout::BEARING_BLOCKS); BOOST_ASSERT( static_cast(layout.GetBlockSize(DataLayout::BEARING_BLOCKS)) >= std::distance(bearing_blocks_data.begin(), bearing_blocks_data.end()) * diff --git a/src/tools/store.cpp b/src/tools/store.cpp index 24ee46fef..08f570259 100644 --- a/src/tools/store.cpp +++ b/src/tools/store.cpp @@ -14,7 +14,7 @@ using namespace osrm; -void removeLocks() { osrm::storage::SharedMonitor::remove(); } +void removeLocks() { storage::SharedMonitor::remove(); } void deleteRegion(const storage::SharedDataType region) { diff --git a/src/updater/updater.cpp b/src/updater/updater.cpp index f86f2078f..083aedf62 100644 --- a/src/updater/updater.cpp +++ b/src/updater/updater.cpp @@ -81,7 +81,7 @@ void checkWeightsConsistency( const UpdaterConfig &config, const std::vector &edge_based_edge_list) { - using Reader = osrm::storage::io::FileReader; + using Reader = storage::io::FileReader; using OriginalEdgeData = osrm::extractor::OriginalEdgeData; extractor::SegmentDataContainer segment_data;