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

Method clear_NoLock

src/engine/Engine.cpp:532–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531
532void Engine::clear_NoLock() {
533 // Copy lists because we'll be removing while iterating
534 std::set<ParamHandle*> paramHandles = internal->paramHandles;
535 for (ParamHandle* paramHandle : paramHandles) {
536 removeParamHandle_NoLock(paramHandle);
537 // Don't delete paramHandle because they're normally owned by Module subclasses
538 }
539 std::vector<Cable*> cables = internal->cables;
540 for (Cable* cable : cables) {
541 removeCable_NoLock(cable);
542 delete cable;
543 }
544 std::vector<Module*> modules = internal->modules;
545 for (Module* module : modules) {
546 removeModule_NoLock(module);
547 delete module;
548 }
549}
550
551
552void Engine::stepBlock(int frames) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected