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

Method stopPreload

valdi/src/valdi/runtime/Views/ViewPreloader.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void ViewPreloader::stopPreload() {
59 std::lock_guard<std::mutex> lock(_mutex);
60 while (!_preloadCountByClassName.empty()) {
61 _preloadCountByClassName.erase(_preloadCountByClassName.begin());
62 }
63}
64
65void ViewPreloader::schedulePreload() {
66 auto strongThis = strongRef(this);

Callers 2

~ViewManagerContextMethod · 0.80
clearViewPoolsMethod · 0.80

Calls 3

emptyMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected