MCPcopy Create free account
hub / github.com/comaps/comaps / GetDataSource

Method GetDataSource

libs/routing/routes_builder/data_source_storage.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17std::unique_ptr<FrozenDataSource> DataSourceStorage::GetDataSource()
18{
19 std::lock_guard<std::mutex> lock(m_mutex);
20 CHECK(!m_freeDataSources.empty(), ());
21 std::unique_ptr<FrozenDataSource> front = std::move(m_freeDataSources.front());
22 m_freeDataSources.pop_front();
23 return front;
24}
25} // namespace routes_builder
26} // namespace routing

Callers 15

CreateTrafficPanelMethod · 0.80
FeatureGetterMethod · 0.80
MwmMethod · 0.80
Framework.cppFile · 0.80
BuildMethod · 0.80
ShowPlacePageMethod · 0.80
GetFeatureAddressInfoFunction · 0.80
ShowInfoPopupMethod · 0.80
MainModelMethod · 0.80

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by 3

UNIT_TESTFunction · 0.64
UNIT_TESTFunction · 0.64