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

◆ start()

void MayaFlux::Core::InputManager::start ( )

Start the processing thread.

Definition at line 46 of file InputManager.cpp.

47{
48 if (m_running.load()) {
50 "InputManager already running");
51 return;
52 }
53
54 if (!m_input_service) {
56 .get_service<Registry::Service::InputService>();
57
58 if (!m_input_service) {
60 "InputManager requires InputService but service not registered");
61 return;
62 }
63 }
64
65 m_stop_requested.store(false);
66 m_running.store(true);
68
70 "InputManager started");
71}
#define MF_INFO(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
std::atomic< bool > m_stop_requested
Registry::Service::InputService * m_input_service
std::atomic< bool > m_running
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.
@ InputManagement
Input management (Core::InputManager)
@ Init
Engine/subsystem initialization.
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Journal::Init, MayaFlux::Journal::InputManagement, MayaFlux::Registry::BackendRegistry::instance(), m_input_service, m_processing_thread, m_running, m_stop_requested, MF_INFO, MF_WARN, and processing_loop().

+ Here is the call graph for this function: