Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
24
libs/routing/routes_builder/data_source_storage.hpp
Normal file
24
libs/routing/routes_builder/data_source_storage.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue