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

Method clearViewPools

valdi/src/valdi/runtime/Views/GlobalViewFactories.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 : _attributesManager(attributesManager) {}
19
20GlobalViewFactories::~GlobalViewFactories() = default;
21
22void GlobalViewFactories::clearViewPools() {
23 std::vector<Ref<View>> pooledViews;
24 takePooledViews(pooledViews);
25}
26
27void GlobalViewFactories::takePooledViews(std::vector<Ref<View>>& outViews) const {
28 // Destroying a view can be slow (a JNI call per view on Android), so it must not happen under
29 // _mutex, which getViewFactory() needs on the JS and preloader threads.

Callers

nothing calls this directly

Calls 1

clearViewPoolMethod · 0.80

Tested by

no test coverage detected