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

◆ dispatch()

void MayaFlux::Vruta::EventSource::dispatch ( const void *  event)
protected

Iterates the waiter list, passing the type-erased signal to each.

Called by derived classes after committing a new signal value. Awaiters that match resume and unregister themselves.

Parameters
eventType-erased pointer to the current signal value.

Definition at line 7 of file EventSource.cpp.

8{
9 if (m_waiters.empty())
10 return;
11
12 auto waiters = m_waiters;
13 for (auto* w : waiters)
14 w->try_resume(event);
15}
std::vector< Kriya::EventAwaiter * > m_waiters

References m_waiters.

Referenced by MayaFlux::Vruta::WindowEventSource::signal().

+ Here is the caller graph for this function: