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

Method SafeCall

libs/drape_frontend/drape_engine_safe_ptr.hpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29 template <typename Function, typename... Args>
30 void SafeCall(Function && f, Args &&... functionArgs)
31 {
32 std::lock_guard<std::mutex> lock(m_mutex);
33 if (m_engine != nullptr)
34 (m_engine.get()->*f)(std::forward<Args>(functionArgs)...);
35 }
36
37 template <typename Function, typename... Args>
38 dp::DrapeID SafeCallWithResult(Function && f, Args &&... functionArgs)

Callers 15

SetEnabledMethod · 0.80
OnTrafficDataResponseMethod · 0.80
ClearCacheMethod · 0.80
SetEnabledMethod · 0.80
OnBuildRouteReadyMethod · 0.80
RemoveRouteMethod · 0.80
DisableFollowModeMethod · 0.80
SetDrapeEngineMethod · 0.80
HidePreviewSegmentsMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected