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

◆ stop()

void MayaFlux::Core::InputManager::stop ( )

Stop the processing thread.

Waits for thread to finish processing current queue before returning.

Definition at line 70 of file InputManager.cpp.

71{
72 if (!m_running.load()) {
73 return;
74 }
75
76 m_stop_requested.store(true);
77
78 m_queue_notify.store(true);
79 m_queue_notify.notify_one();
80
81 if (m_processing_thread.joinable()) {
83 }
84
85 m_running.store(false);
86
88 "InputManager stopped (processed {} events)", m_events_processed.load());
89}
#define MF_INFO(comp, ctx,...)
std::atomic< bool > m_stop_requested
std::atomic< bool > m_queue_notify
std::atomic< bool > m_running
std::atomic< uint64_t > m_events_processed
@ Init
Engine/subsystem initialization.
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::Init, m_events_processed, m_processing_thread, m_queue_notify, m_running, m_stop_requested, and MF_INFO.

Referenced by ~InputManager().

+ Here is the caller graph for this function: