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

◆ start()

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

Start the processing thread.

Definition at line 43 of file InputManager.cpp.

44{
45 if (m_running.load()) {
47 "InputManager already running");
48 return;
49 }
50
51 if (!m_input_service) {
53 .get_service<Registry::Service::InputService>();
54
55 if (!m_input_service) {
57 "InputManager requires InputService but service not registered");
58 return;
59 }
60 }
61
62 m_stop_requested.store(false);
63 m_running.store(true);
65
67 "InputManager started");
68}
#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: