MCPcopy Create free account
hub / github.com/Snapchat/Valdi / applicationIsLowInMemory

Method applicationIsLowInMemory

valdi/src/valdi/runtime/RuntimeManager.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 mainThreadManagerOverride != nullptr ? mainThreadManagerOverride : _mainThreadManager,
345 *_logger);
346
347 // Held until the tweaks are applied so that a concurrent setTweakValueProvider() either sees this context or
348 // has already published the tweaks read below.
349 std::lock_guard<Mutex> contextsGuard(_viewManagerContextsMutex);
350 _viewManagerContexts.emplace_back(viewManagerContext);
351
352 Ref<ValdiRuntimeTweaks> runtimeTweaks;
353 {
354 std::lock_guard<Mutex> guard(_mutex);
355 runtimeTweaks = _runtimeTweaks;

Callers 2

TEST_PFunction · 0.80

Calls 1

removeUnusedResourcesMethod · 0.45

Tested by 1

TEST_PFunction · 0.64