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

Method clearViewPool

valdi/src/valdi/runtime/Views/ViewFactory.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20ViewFactory::~ViewFactory() = default;
21
22void ViewFactory::clearViewPool() {
23 auto pooledViews = takePooledViews();
24}
25
26std::deque<Ref<View>> ViewFactory::takePooledViews() {
27 std::deque<Ref<View>> pooledViews;
28 std::lock_guard<Mutex> lock(_mutex);

Callers 1

clearViewPoolsMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected