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

◆ defer()

void MayaFlux::Vruta::WindowEventSource::defer ( std::function< void()>  action)

Run an action after the active outermost window-event dispatch.

Parameters
actionAction to run after event waiters, or immediately when the source is idle.

Definition at line 53 of file WindowEventSource.cpp.

54{
55 if (!action)
56 return;
57
58 if (m_signal_depth == 0) {
59 action();
60 return;
61 }
62
63 m_deferred_actions.push_back(std::move(action));
64}
std::vector< std::function< void()> > m_deferred_actions

References m_deferred_actions, and m_signal_depth.

Referenced by MayaFlux::Portal::Forma::Context::handle_close().

+ Here is the caller graph for this function: