MayaFlux 0.2.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 95 of file InputManager.cpp.

96{
97
98 if (!m_queue.push(value)) {
100 "Input queue full, dropping oldest event");
101 }
102
103 m_queue_notify.store(true);
104 m_queue_notify.notify_one();
105}
#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.