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

◆ stop()

void MayaFlux::Core::InputSubsystem::stop ( )
overridevirtual

Stop the subsystem's processing/event loops.

Implements MayaFlux::Core::ISubsystem.

Definition at line 145 of file InputSubsystem.cpp.

146{
147 if (!m_running.load())
148 return;
149
150 {
151 std::shared_lock lock(m_backends_mutex);
152 for (auto& [type, backend] : m_backends) {
153 backend->stop();
154 }
155 }
156
158
159 m_running.store(false);
160
162 "Input Subsystem stopped");
163}
#define MF_INFO(comp, ctx,...)
SubsystemProcessingHandle * m_handle
std::unordered_map< InputType, std::unique_ptr< IInputBackend > > m_backends
@ InputSubsystem
Input subsystem operations (device management, event dispatch)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Core::SubsystemProcessingHandle::inputs, MayaFlux::Journal::InputSubsystem, m_backends, m_backends_mutex, m_handle, m_running, MF_INFO, and MayaFlux::Core::InputManagerHandle::stop().

Referenced by shutdown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: