| 266 | |
| 267 | |
| 268 | static 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 | |
| 287 | static void Engine_relaunchWorkers(Engine* that, int threadCount) { |
no test coverage detected