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

◆ on_container_state_change()

void MayaFlux::Buffers::ContainerToBufferAdapter::on_container_state_change ( std::shared_ptr< Kakshya::SignalSourceContainer container,
Kakshya::ProcessingState  state 
)
private

Respond to container state changes (e.g., READY, PROCESSED, NEEDS_REMOVAL).

Updates buffer state flags as needed.

Parameters
containerThe container whose state changed.
stateThe new processing state.

Definition at line 206 of file ContainerBuffer.cpp.

209{
210 switch (state) {
212 break;
213
215 std::cerr << "Container entered error state" << '\n';
216 break;
217
218 default:
219 break;
220 }
221}
@ NEEDS_REMOVAL
Container is marked for removal from the system.
@ ERROR
Container is in an error state and cannot proceed.

References MayaFlux::Kakshya::ERROR, and MayaFlux::Kakshya::NEEDS_REMOVAL.

Referenced by ContainerToBufferAdapter(), and set_container().

+ Here is the caller graph for this function: