- shared_ptr<pv::data::DecoderStack> decoder_stack_;
- const unordered_set< shared_ptr<data::SignalBase> > &all_signals_;
- list<data::DecodeChannel> channels_;
+ 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_;
+
+ 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_;