summaryrefslogtreecommitdiff
path: root/map65/libm65/stdout_shared_layout.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /map65/libm65/stdout_shared_layout.h
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'map65/libm65/stdout_shared_layout.h')
-rw-r--r--map65/libm65/stdout_shared_layout.h5
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)
};