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

◆ stop()

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

Stop listening for input events.

Pauses input delivery without closing devices.

Implements MayaFlux::Core::IInputBackend.

Definition at line 72 of file HIDBackend.cpp.

73{
74 if (!m_running.load()) {
75 return;
76 }
77
78 m_stop_requested.store(true);
79
80 if (m_poll_thread.joinable()) {
81 m_poll_thread.join();
82 }
83
84 m_running.store(false);
85
87 "HIDBackend stopped");
88}
#define MF_INFO(comp, ctx,...)
std::atomic< bool > m_running
std::atomic< bool > m_stop_requested
@ InputBackend
Input device backend (HID, MIDI, OSC)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::InputBackend, m_poll_thread, m_running, m_stop_requested, and MF_INFO.

Referenced by shutdown().

+ Here is the caller graph for this function: