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

◆ enqueue()

void MayaFlux::Core::InputManager::enqueue ( const InputValue value)

Enqueue an input value for processing.

Parameters
valueThe input value from a backend

Thread-safe. Called from backend threads. Wakes processing thread if sleeping.

Definition at line 98 of file InputManager.cpp.

99{
100
101 if (!m_queue.push(value)) {
103 "Input queue full, dropping oldest event");
104 }
105
106 m_queue_notify.store(true);
107 m_queue_notify.notify_one();
108}
#define MF_WARN(comp, ctx,...)
std::atomic< bool > m_queue_notify
Memory::LockFreeQueue< InputValue, MAX_QUEUE_SIZE > m_queue
@ InputManagement
Input management (Core::InputManager)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::InputManagement, m_queue, m_queue_notify, and MF_WARN.

Referenced by setup_osc_bridge().

+ Here is the caller graph for this function: