aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputReader.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-27 10:30:57 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-27 10:30:57 +0100
commit6db4e5b3ad28973601b8e7426a4cffa01322b9a2 (patch)
tree20ad9a5dc6a18dd513f4a254f7a86ddd2eba52f3 /src/InputReader.h
parent201d711a1d3dfbe46d622871731005937598e790 (diff)
parentc3dbbec39aef32789aacb872c88801f0c5d15ef7 (diff)
downloaddabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.gz
dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.bz2
dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.zip
Merge branch 'next' into lime
Diffstat (limited to 'src/InputReader.h')
-rw-r--r--src/InputReader.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/InputReader.h b/src/InputReader.h
index 98eab2b..63451e5 100644
--- a/src/InputReader.h
+++ b/src/InputReader.h
@@ -184,7 +184,15 @@ class InputZeroMQReader : public InputReader, public RemoteControllable
std::atomic<bool> m_running = ATOMIC_VAR_INIT(false);
std::string m_uri;
size_t m_max_queued_frames = 0;
- ThreadsafeQueue<std::vector<uint8_t> > m_in_messages;
+
+ // Either must contain a full ETI frame, or one flag must be set
+ struct message_t {
+ std::vector<uint8_t> eti_frame;
+ bool overflow = false;
+ bool timeout = false;
+ bool fault = false;
+ };
+ ThreadsafeQueue<message_t> m_in_messages;
mutable std::mutex m_last_in_messages_size_mutex;
size_t m_last_in_messages_size = 0;