MayaFlux 0.5.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 189 of file SubsystemManager.cpp.

190{
191 if (auto it = m_subsystems.find(type); it != m_subsystems.end()) {
192 it->second->shutdown();
193 m_subsystems.erase(it);
194 m_handles.erase(type);
196 }
197}
vk::PhysicalDeviceType type
Definition VKDevice.cpp:146
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, m_subsystems, and type.