MayaFlux 0.4.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 419 of file WindowContainer.cpp.

420{
421 ProcessingState old = m_processing_state.exchange(new_state);
422 if (old == new_state)
423 return;
424
425 std::lock_guard lock(m_state_mutex);
427 m_state_callback(shared_from_this(), new_state);
428}
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: