MayaFlux 0.2.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 126 of file SubsystemManager.cpp.

127{
128 if (auto it = m_subsystems.find(type); it != m_subsystems.end()) {
129 it->second->shutdown();
130 m_subsystems.erase(it);
131 m_handles.erase(type);
132 m_cross_access_permissions.erase(type);
133 }
134}
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.