MayaFlux 0.4.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 619 of file TextureContainer.cpp.

620{
621 ProcessingState prev = m_processing_state.exchange(state);
622 if (prev == state)
623 return;
624
625 std::lock_guard lock(m_state_mutex);
626 if (m_state_cb)
627 m_state_cb(shared_from_this(), state);
628}
std::atomic< ProcessingState > m_processing_state
void lock() override
Acquire a lock for thread-safe access.
std::function< void(const std::shared_ptr< SignalSourceContainer > &, ProcessingState)> m_state_cb
ProcessingState
Represents the current processing lifecycle state of a container.