aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputReader.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-23 21:51:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-23 22:09:12 +0100
commitd43c72adb60395ea20550d49d0310aebbdca53a3 (patch)
treedd6481427b2160fcb14074117daa878df2d60b15 /src/InputReader.h
parente3f85ddc8ea565bc81b538269298a9f97b055c8c (diff)
downloaddabmod-d43c72adb60395ea20550d49d0310aebbdca53a3.tar.gz
dabmod-d43c72adb60395ea20550d49d0310aebbdca53a3.tar.bz2
dabmod-d43c72adb60395ea20550d49d0310aebbdca53a3.zip
Maintain transmission frame FP relationship in ZeroMQ input
Diffstat (limited to 'src/InputReader.h')
-rw-r--r--src/InputReader.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/InputReader.h b/src/InputReader.h
index de8fb78..6a7d7c3 100644
--- a/src/InputReader.h
+++ b/src/InputReader.h
@@ -143,15 +143,26 @@ class InputZeroMQWorker
{
public:
InputZeroMQWorker() :
- zmqcontext(1) {}
+ running(false),
+ zmqcontext(1),
+ m_to_drop(0) { }
void Start(struct InputZeroMQThreadData* workerdata);
void Stop();
private:
void RecvProcess(struct InputZeroMQThreadData* workerdata);
+
bool running;
zmq::context_t zmqcontext; // is thread-safe
boost::thread recv_thread;
+
+ /* We must be careful to keep frame phase consistent. If we
+ * drop a single ETI frame, we will break the transmission
+ * frame vs. ETI frame phase.
+ *
+ * Here we keep track of how many ETI frames we must drop
+ */
+ int m_to_drop;
};
class InputZeroMQReader : public InputReader