OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
WriteTask.hpp File Reference

Ring-buffer task descriptor for the IO thread (Phase 5, R17). More...

Include dependency graph for WriteTask.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::WriteTask
 One item in the IOThread write queue. More...
 

Namespaces

namespace  openswmm
 

Detailed Description

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.

See also
IOThread.hpp
include/openswmm/plugin_sdk/SimulationSnapshot.hpp
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License