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

◆ update_processing_state()

void MayaFlux::Kakshya::WindowContainer::update_processing_state ( ProcessingState  new_state)
overridevirtual

Update the processing state of the container.

Parameters
new_stateNew ProcessingState to set

May trigger registered state change callbacks for event-driven workflows.

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 245 of file WindowContainer.cpp.

246{
247 ProcessingState old = m_processing_state.exchange(new_state);
248 if (old == new_state)
249 return;
250
251 std::lock_guard lock(m_state_mutex);
253 m_state_callback(shared_from_this(), new_state);
254}
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_callback
std::atomic< ProcessingState > m_processing_state
void lock() override
Acquire a lock for thread-safe access.
ProcessingState
Represents the current processing lifecycle state of a container.

References lock(), m_processing_state, m_state_callback, and m_state_mutex.

Referenced by clear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: