MayaFlux 0.4.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 73 of file InputManager.cpp.

74{
75 if (!m_running.load()) {
76 return;
77 }
78
79 m_stop_requested.store(true);
80
81 m_queue_notify.store(true);
82 m_queue_notify.notify_one();
83
84 if (m_processing_thread.joinable()) {
86 }
87
88 m_running.store(false);
89
91 "InputManager stopped (processed {} events)", m_events_processed.load());
92}
#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: