MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ remove_subsystem()

void MayaFlux::Core::SubsystemManager::remove_subsystem ( SubsystemType  type)

Remove and shutdown a subsystem.

Parameters
typeSubsystemType enum value identifying the subsystem to remove

Stops, shuts down, and removes the specified subsystem from management. Cleans up associated processing handles and resources.

Definition at line 173 of file SubsystemManager.cpp.

174{
175 if (auto it = m_subsystems.find(type); it != m_subsystems.end()) {
176 it->second->shutdown();
177 m_subsystems.erase(it);
178 m_handles.erase(type);
179 m_cross_access_permissions.erase(type);
180 }
181}
std::unordered_map< SubsystemType, std::unordered_set< SubsystemType > > m_cross_access_permissions
std::unordered_map< SubsystemType, std::unique_ptr< SubsystemProcessingHandle > > m_handles
std::unordered_map< SubsystemType, std::shared_ptr< ISubsystem > > m_subsystems

References m_cross_access_permissions, m_handles, and m_subsystems.