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

◆ try_resume()

void MayaFlux::Kriya::EventAwaiter::try_resume ( )

Called by EventSource when event arrives.

Definition at line 34 of file EventAwaiter.cpp.

35{
36 if (auto event = m_source.pop_event(m_filter)) {
37 m_result = *event;
39 m_is_suspended = false;
40 m_handle.resume();
41 }
42}
std::coroutine_handle m_handle
Vruta::EventSource & m_source
std::optional< Core::WindowEvent > pop_event(const EventFilter &filter)
Pop event matching filter from queue.
void unregister_waiter(Kriya::EventAwaiter *awaiter)

References m_filter, m_handle, m_is_suspended, m_result, m_source, MayaFlux::Vruta::EventSource::pop_event(), and MayaFlux::Vruta::EventSource::unregister_waiter().

+ Here is the call graph for this function: