MCPcopy Create free account
hub / github.com/christophhart/HISE / handleAsyncUpdate

Method handleAsyncUpdate

hi_scripting/scripting/ScriptProcessor.cpp:836–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834}
835
836void JavascriptProcessor::SnippetDocument::Notifier::handleAsyncUpdate()
837{
838 String text;
839
840 {
841 SpinLock::ScopedLockType sl(parent.pendingLock);
842 parent.pendingNewContent.swapWith(text);
843 }
844
845 parent.setDisableUndo(true);
846 parent.replaceAllContent(text);
847 parent.setDisableUndo(false);
848
849 parent.pendingNewContent = String();
850}
851
852JavascriptProcessor::SnippetResult::SnippetResult(Result r_, int c_): r(r_), c(c_)
853{}

Callers 1

replaceContentAsyncMethod · 0.45

Calls 4

setDisableUndoMethod · 0.80
replaceAllContentMethod · 0.80
StringClass · 0.50
swapWithMethod · 0.45

Tested by

no test coverage detected