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

◆ ProcessingState

enum class MayaFlux::Kakshya::ProcessingState : uint8_t
strong

Represents the current processing lifecycle state of a container.

ProcessingState tracks a container's position in the data processing lifecycle, enabling coordinated processing across components and optimizing resource usage. This state-based approach allows the system to make intelligent decisions about when to process data and how to handle dependencies between components.

The state transitions typically follow this sequence:

  1. IDLE → READY (when data is loaded/prepared)
  2. READY → PROCESSING (when processing begins)
  3. PROCESSING → PROCESSED (when processing completes)
  4. PROCESSED → READY (when new processing is needed)
  5. Any state → NEEDS_REMOVAL (when container should be removed)

Components can register for state change notifications to coordinate their activities with the container's lifecycle, enabling efficient resource management and processing optimization.

Enumerator
IDLE 

Container is inactive with no data or not ready for processing.

Typically the initial state or when a container is reset.

READY 

Container has data loaded and is ready for processing.

Processing can begin when resources are available.

PROCESSING 

Container is actively being processed.

Other components should avoid modifying the data during this state.

PROCESSED 

Container has completed processing and results are available.

Data can be consumed by downstream components.

NEEDS_REMOVAL 

Container is marked for removal from the system.

Resources should be released and references cleared.

ERROR 

Container is in an error state and cannot proceed.

Typically requires external intervention to resolve.

Definition at line 31 of file SignalSourceContainer.hpp.

31 : uint8_t {
32 /**
33 * Container is inactive with no data or not ready for processing.
34 * Typically the initial state or when a container is reset.
35 */
36 IDLE,
37
38 /**
39 * Container has data loaded and is ready for processing.
40 * Processing can begin when resources are available.
41 */
42 READY,
43
44 /**
45 * Container is actively being processed.
46 * Other components should avoid modifying the data during this state.
47 */
49
50 /**
51 * Container has completed processing and results are available.
52 * Data can be consumed by downstream components.
53 */
54 PROCESSED,
55
56 /**
57 * Container is marked for removal from the system.
58 * Resources should be released and references cleared.
59 */
61
62 /**
63 * Container is in an error state and cannot proceed.
64 * Typically requires external intervention to resolve.
65 */
66 ERROR
67};
@ NEEDS_REMOVAL
Container is marked for removal from the system.
@ PROCESSING
Container is actively being processed.
@ READY
Ready for processing.
@ IDLE
Not being processed.