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

Method beginDisableUpdates

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:871–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871ViewNodeTreeDisableUpdates ViewNodeTree::beginDisableUpdates() {
872 auto lk = lock();
873 _disableUpdatesCounter++;
874 if (_disableUpdatesCounter == 1) {
875 _wasUpdatingBeforeDisablingUpdates = _updating;
876 _updating = true;
877 }
878
879 return ViewNodeTreeDisableUpdates(strongSmallRef(this), std::move(lk));
880}
881
882void ViewNodeTree::lockFreeEndDisableUpdates() {
883 _disableUpdatesCounter--;

Callers 2

handleOnScrollMethod · 0.80

Calls 2

strongSmallRefFunction · 0.85

Tested by 1