![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Ring-buffer task descriptor for the IO thread (Phase 5, R17). More...
Go to the source code of this file.
Classes | |
| struct | openswmm::WriteTask |
| One item in the IOThread write queue. More... | |
Namespaces | |
| namespace | openswmm |
Ring-buffer task descriptor for the IO thread (Phase 5, R17).
A WriteTask packages a SimulationSnapshot for delivery to the IOThread write queue. The snapshot is moved (or deep-copied) from the live SimulationContext when an output boundary is reached.
Because the snapshot owns its own vectors, the main simulation thread is free to continue advancing immediately after posting — no mutex is needed on the simulation state.