mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
25 lines
457 B
C++
25 lines
457 B
C++
#pragma once
|
|
|
|
#include "indexer/data_source.hpp"
|
|
|
|
#include <list>
|
|
#include <memory>
|
|
#include <mutex>
|
|
|
|
namespace routing
|
|
{
|
|
namespace routes_builder
|
|
{
|
|
class DataSourceStorage
|
|
{
|
|
public:
|
|
void PushDataSource(std::unique_ptr<FrozenDataSource> && ptr);
|
|
std::unique_ptr<FrozenDataSource> GetDataSource();
|
|
|
|
private:
|
|
std::mutex m_mutex;
|
|
std::list<std::unique_ptr<FrozenDataSource>> m_freeDataSources;
|
|
};
|
|
} // namespace routes_builder
|
|
} // namespace routing
|