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

◆ update_processing_state()

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

681{
682 ProcessingState prev = m_processing_state.exchange(state);
683 if (prev == state)
684 return;
685
687 if (m_state_cb)
688 m_state_cb(shared_from_this(), state);
689 });
690}
std::atomic< ProcessingState > m_processing_state
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_cb
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