MayaFlux 0.5.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 545 of file WindowContainer.cpp.

546{
547 ProcessingState old = m_processing_state.exchange(new_state);
548 if (old == new_state)
549 return;
550
553 m_state_callback(shared_from_this(), new_state);
554 });
555}
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_callback
std::atomic< ProcessingState > m_processing_state
ProcessingState
Represents the current processing lifecycle state of a container.
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
Definition SeqLock.hpp:222

References m_cb_lock, m_processing_state, and m_state_callback.

Referenced by clear().

+ Here is the caller graph for this function: