]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decoder.h
Implemented a global decode lock to prevent concurrent decode
[pulseview.git] / pv / data / decoder.h
index 09002ac911153ed06901af6ab1ba3e0927b1f4c7..b8608d2cc4290ed712722ba1e677e6383e96fb03 100644 (file)
@@ -96,6 +96,15 @@ signals:
        void new_decode_data();
 
 private:
        void new_decode_data();
 
 private:
+
+       /**
+        * This mutex prevents more than one decode operation occuring
+        * concurrently.
+        * @todo A proper solution should be implemented to allow multiple
+        * decode operations.
+        */
+       static boost::mutex _global_decode_mutex;
+
        const srd_decoder *const _decoder;
        std::map<const srd_probe*, boost::shared_ptr<view::LogicSignal> >
                _probes;
        const srd_decoder *const _decoder;
        std::map<const srd_probe*, boost::shared_ptr<view::LogicSignal> >
                _probes;