How waelm0/realtimeproject1 works
RealTimeProject1 simulates a two-team furniture-passing competition: a coordinator loads settings and starts worker chains, pieces move toward sinks for ordered placement, and rejected pieces return along reverse chains. Wins update a shared scoreboard and trigger round-reset barriers; a separate GLUT process visualizes worker and piece activity. The graph preserves documented serial-selection, signal, IPC, and display capabilities. Some implementation details are unsampled, so those relationships are shown only where the README or excerpts support them.
Main entry points: main.c Coordinator · team.c Sink Placement · ipc.c Forward and Return Pipes · signals.c Signal Control
Components 16
Coordination
- Coordinator
src/main.c - Signal Control
src/signals.c - Round Barrier
src/ipc.c
Competition
- Team Sources
src/team.c - Member Hops
src/team.c - Sink Placement
src/team.c - Serial Selection
src/team.c
IPC and State
- Forward and Return Pipes
src/ipc.c - Display FIFO
src/ipc.c - Shared Scoreboard
src/ipc.c - Win Notifications
src/signals.c
Visualization
- Display Process
src/main.c - GLUT Viewer
src/display.c
Configuration and Support
- Config Loader
src/config.c - Logging
src/log.c
Other components
- Run Configuration
Connections 24
- Run Configuration → Coordinator: starts with config
README.md - Coordinator → Config Loader: loads settings
src/main.c - Coordinator → Team Sources: starts workers
README.md - Team Sources → Serial Selection: selects pieces
README.md - Team Sources → Forward and Return Pipes: sends pieces
README.md - Forward and Return Pipes → Member Hops: carries handoffs
README.md - Member Hops → Forward and Return Pipes: forwards or returns
README.md - Forward and Return Pipes → Sink Placement: delivers pieces
README.md - Sink Placement → Shared Scoreboard: checks order
README.md - Sink Placement → Forward and Return Pipes: returns rejects
README.md - Sink Placement → Win Notifications: notifies wins
README.md - Win Notifications → Coordinator: reports win
src/main.c - Coordinator → Shared Scoreboard: updates scores
src/main.c - Coordinator → Round Barrier: resets rounds
src/main.c - Round Barrier → Signal Control: signals workers
- Signal Control → Team Sources: resets or stops
README.md - Signal Control → Member Hops: resets or stops
README.md - Signal Control → Sink Placement: resets or stops
README.md - Coordinator → Display Process: execs viewer
src/main.c - Team Sources → Display FIFO: writes events
README.md - Member Hops → Display FIFO: writes events
README.md - Sink Placement → Display FIFO: writes events
README.md - Display FIFO → GLUT Viewer: feeds events
README.md - Shared Scoreboard → GLUT Viewer: provides scores
README.md