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

◆ register_state_change_callback()

void MayaFlux::Kakshya::PlotContainer::register_state_change_callback ( std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)>  callback)
overridevirtual

Register a callback to be invoked on processing state changes.

Parameters
callbackFunction to call when state changes (receives container and new state)

Enables external components to react to lifecycle transitions for orchestration, resource management, or UI updates.

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 408 of file PlotContainer.cpp.

410{
411 Memory::SeqlockWriteGuard g(m_cb_lock);
412 m_state_cb = std::move(cb);
413}
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_cb

References m_cb_lock, and m_state_cb.