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

Method beginViewTransaction

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

Source from the content-addressed store, hash-verified

928
929 return *ref;
930}
931
932const Ref<ViewTransactionScope>& ViewNodeTree::getCurrentViewTransactionScopeRef() {
933 _mutex.assertIsLocked();
934 return _currentViewTransactionScope;
935}
936
937void ViewNodeTree::unsafeSetCurrentViewTransactionScope(const Ref<ViewTransactionScope>& currentViewTransactionScope) {
938 _currentViewTransactionScope = currentViewTransactionScope;
939}
940
941void ViewNodeTree::unsafeBeginViewTransaction() {
942 beginViewTransaction();
943}
944
945void ViewNodeTree::unsafeEndViewTransaction() {
946 endViewTransaction(_currentViewTransactionScope, false);
947}
948

Callers

nothing calls this directly

Calls 2

getRootViewFunction · 0.85
setRootViewMethod · 0.45

Tested by

no test coverage detected