+ pv::Session &session_;
+
+ vector<data::DecodeChannel> channels_;
+
+ struct srd_session *srd_session_;
+
+ shared_ptr<Logic> logic_mux_data_;
+ shared_ptr<LogicSegment> segment_;
+ bool logic_mux_data_invalid_;
+
+ pv::util::Timestamp start_time_;
+ double samplerate_;
+
+ int64_t samples_decoded_;
+
+ vector< shared_ptr<decode::Decoder> > stack_;
+ map<const decode::Row, decode::RowData> rows_;
+ map<pair<const srd_decoder*, int>, decode::Row> class_rows_;
+
+ /**
+ * This mutex prevents more than one thread from accessing
+ * libsigrokdecode concurrently.
+ * @todo A proper solution should be implemented to allow multiple
+ * decode operations in parallel.
+ */
+ static mutex global_srd_mutex_;
+
+ mutable mutex input_mutex_, output_mutex_, logic_mux_mutex_;
+ mutable condition_variable decode_input_cond_, logic_mux_cond_;
+ bool frame_complete_;
+
+ std::thread decode_thread_, logic_mux_thread_;
+ atomic<bool> decode_interrupt_, logic_mux_interrupt_;
+
+ QString error_message_;