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

◆ await_ready()

bool MayaFlux::Kriya::WindowEventAwaiter::await_ready ( )

Returns true if a matching event is already queued; stores it if so.

Definition at line 11 of file EventAwaiter.cpp.

12{
13 if (auto ev = m_source.pop_event(m_filter)) {
14 m_result = *ev;
15 return true;
16 }
17 return false;
18}
Vruta::WindowEventFilter m_filter
Vruta::WindowEventSource & m_source
std::optional< Core::WindowEvent > pop_event(const WindowEventFilter &filter)
Removes and returns the first pending event matching the filter.

References m_filter, m_result, m_source, and MayaFlux::Vruta::WindowEventSource::pop_event().

+ Here is the call graph for this function: