MayaFlux 0.3.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 158 of file SubsystemManager.cpp.

159{
160 if (auto it = m_subsystems.find(type); it != m_subsystems.end()) {
161 it->second->shutdown();
162 m_subsystems.erase(it);
163 m_handles.erase(type);
164 m_cross_access_permissions.erase(type);
165 }
166}
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.