MCPcopy Create free account
hub / github.com/VCVRack/Rack / Engine_updateExpander_NoLock

Function Engine_updateExpander_NoLock

src/engine/Engine.cpp:268–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266
267
268static void Engine_updateExpander_NoLock(Engine* that, Module* module, uint8_t side) {
269 Module::Expander& expander = module->getExpander(side);
270
271 if (expander.moduleId >= 0) {
272 // Check if moduleId has changed from current module
273 if (!expander.module || expander.module->id != expander.moduleId) {
274 Module* expanderModule = that->getModule_NoLock(expander.moduleId);
275 module->setExpanderModule(expanderModule, side);
276 }
277 }
278 else {
279 // Check if moduleId has unset module
280 if (expander.module) {
281 module->setExpanderModule(NULL, side);
282 }
283 }
284}
285
286
287static void Engine_relaunchWorkers(Engine* that, int threadCount) {

Callers 1

stepBlockMethod · 0.85

Calls 2

getModule_NoLockMethod · 0.80
setExpanderModuleMethod · 0.80

Tested by

no test coverage detected