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

Method setJsThreadQoS

valdi/src/valdi/runtime/RuntimeManager.cpp:640–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638
639void RuntimeManager::setJsThreadQoS(ThreadQoSClass jsThreadQoS) {
640 std::lock_guard<Mutex> guard(_mutex);
641 if (jsThreadQoS != _jsThreadQoS) {
642 _jsThreadQoS = jsThreadQoS;
643 auto runtimes = getAllRuntimes(guard);
644 for (const auto& runtime : runtimes) {
645 runtime->getJavaScriptRuntime()->setThreadQoS(jsThreadQoS);
646 }
647 }
648}
649
650void RuntimeManager::setAttributionResolver(const Ref<AttributionResolver>& attributionResolver) {
651 std::lock_guard<Mutex> guard(_mutex);
652 _attributionResolver = attributionResolver;

Callers 1

Calls 2

setThreadQoSMethod · 0.80
getJavaScriptRuntimeMethod · 0.80

Tested by

no test coverage detected