diff options
Diffstat (limited to 'map65/libm65/stdout_shared_layout.h')
| -rw-r--r-- | map65/libm65/stdout_shared_layout.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/map65/libm65/stdout_shared_layout.h b/map65/libm65/stdout_shared_layout.h index c45d8852..4564678e 100644 --- a/map65/libm65/stdout_shared_layout.h +++ b/map65/libm65/stdout_shared_layout.h @@ -7,7 +7,10 @@ struct StdoutSharedHeader { std::uint32_t version; // For compatibility std::uint32_t writeIndex; // Next write position in buffer - std::uint32_t dataSize; // Bytes of new data just written + std::uint32_t readIndex; // Last position consumed by the reader thread; + // the writer uses this to compute free space + // and apply backpressure instead of + // overwriting unread data. std::uint32_t seq; // Incremented each write (helps detect missed events) }; |
