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

◆ register_state_change_callback()

void MayaFlux::Kakshya::VideoStreamContainer::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 517 of file VideoStreamContainer.cpp.

519{
520 std::lock_guard lock(m_state_mutex);
521 m_state_callback = std::move(callback);
522}
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_callback
void lock() override
Acquire a lock for thread-safe access.

References lock(), m_state_callback, and m_state_mutex.

+ Here is the call graph for this function: