|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Kakshya::transition_state | ( | ProcessingState & | current_state, |
| ProcessingState | new_state, | ||
| std::function< void()> | on_transition = nullptr |
||
| ) |
Perform a state transition for a ProcessingState, with optional callback.
| current_state | Current state (modified in place). |
| new_state | State to transition to. |
| on_transition | Optional callback to invoke on transition. |
Definition at line 56 of file ContainerUtils.cpp.
References ERROR, IDLE, NEEDS_REMOVAL, PROCESSED, PROCESSING, and READY.