int64_t DecoderStack::samples_decoded() const
{
- lock_guard<mutex> decode_lock(_mutex);
+ lock_guard<mutex> decode_lock(_output_mutex);
return _samples_decoded;
}
std::vector<Row> DecoderStack::get_visible_rows() const
{
- lock_guard<mutex> lock(_mutex);
+ lock_guard<mutex> lock(_output_mutex);
vector<Row> rows;
const Row &row, uint64_t start_sample,
uint64_t end_sample) const
{
- lock_guard<mutex> lock(_mutex);
+ lock_guard<mutex> lock(_output_mutex);
std::map<const Row, decode::RowData>::const_iterator iter =
_rows.find(row);
QString DecoderStack::error_message()
{
- lock_guard<mutex> lock(_mutex);
+ lock_guard<mutex> lock(_output_mutex);
return _error_message;
}
}
{
- lock_guard<mutex> lock(_mutex);
+ lock_guard<mutex> lock(_output_mutex);
_samples_decoded = chunk_end;
}
}
DecoderStack *const d = (DecoderStack*)decoder;
assert(d);
- lock_guard<mutex> lock(d->_mutex);
+ lock_guard<mutex> lock(d->_output_mutex);
const Annotation a(pdata);
std::list< boost::shared_ptr<decode::Decoder> > _stack;
- mutable boost::mutex _mutex;
+ mutable boost::mutex _output_mutex;
int64_t _samples_decoded;
std::map<const decode::Row, decode::RowData> _rows;