Pipeline Types
SyncParallelPipeline
Pipeline implementation for synchronized parallel processing paths
Overview
SyncParallelPipeline
extends parallel processing with synchronization guarantees. It ensures all parallel paths complete processing before continuing, making it ideal for operations that require coordinated outputs.
Class Definition
Synchronization Mechanism
SyncFrame
Internal Components
Source
Sink
Frame Flow
Synchronization Process
- Frame distribution to all paths
- Each path processes independently
- SyncFrames mark path completion
- Collection waits for all paths
- Output proceeds when synchronized
Usage Examples
Basic Synchronized Processing
Content Generation
Frame Processing Rules
- All paths receive input frames
- SyncFrames track completion
- System frames bypass synchronization
- Output maintains frame order
- Duplicate frames are filtered
Queue Management
Notes
- Requires at least one processing path
- Guarantees synchronized output
- Maintains frame ordering
- Handles system frames specially
- Supports nested synchronization
- Filters duplicate frames
- Thread-safe processing
- More overhead than ParallelPipeline
- Ideal for coordinated content generation