mutex DecoderStack::_global_decode_mutex;
-DecoderStack::DecoderStack(const srd_decoder *const dec) :
+DecoderStack::DecoderStack(pv::SigSession &session,
+ const srd_decoder *const dec) :
+ _session(session),
_samples_decoded(0)
{
_stack.push_back(shared_ptr<decode::Decoder>(
namespace pv {
+class SigSession;
+
namespace view {
class LogicSignal;
}
static const int64_t DecodeChunkLength;
public:
- DecoderStack(const srd_decoder *const decoder);
+ DecoderStack(pv::SigSession &_session,
+ const srd_decoder *const decoder);
virtual ~DecoderStack();
void new_decode_data();
private:
+ pv::SigSession &_session;
/**
* This mutex prevents more than one decode operation occuring
// Create the decoder
decoder_stack = shared_ptr<data::DecoderStack>(
- new data::DecoderStack(dec));
+ new data::DecoderStack(*this, dec));
// Make a list of all the probes
std::vector<const srd_probe*> all_probes;