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

Method runWithExclusiveJsThreadLock

valdi/src/valdi/runtime/Runtime.cpp:554–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552 }
553}
554
555void Runtime::runWithExclusiveJsThreadLock(DispatchFunction&& cb) {
556 if (_didInit) {
557 _javaScriptRuntime->dispatchOnJsThreadAsync(nullptr, [cb = std::move(cb)](auto& /*jsEntry*/) { cb(); });
558 } else {
559 _mainThreadManager->dispatch(nullptr, std::move(cb));
560 }
561}
562
563bool Runtime::disablePersistentStoreEncryption() {

Callers

nothing calls this directly

Calls 3

cbFunction · 0.50
dispatchMethod · 0.45

Tested by

no test coverage detected