From: Joel Holdsworth Date: Sun, 2 Mar 2014 16:26:29 +0000 (+0000) Subject: Renamed DecoderStack::_mutex to _output_mutex X-Git-Tag: pulseview-0.2.0~38 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=28b9cc08aa62c02fd64dfb09eff4b9bfdb01f518;p=pulseview.git Renamed DecoderStack::_mutex to _output_mutex --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 716d778b..3bb13284 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -106,13 +106,13 @@ void DecoderStack::remove(int index) int64_t DecoderStack::samples_decoded() const { - lock_guard decode_lock(_mutex); + lock_guard decode_lock(_output_mutex); return _samples_decoded; } std::vector DecoderStack::get_visible_rows() const { - lock_guard lock(_mutex); + lock_guard lock(_output_mutex); vector rows; @@ -147,7 +147,7 @@ void DecoderStack::get_annotation_subset( const Row &row, uint64_t start_sample, uint64_t end_sample) const { - lock_guard lock(_mutex); + lock_guard lock(_output_mutex); std::map::const_iterator iter = _rows.find(row); @@ -158,7 +158,7 @@ void DecoderStack::get_annotation_subset( QString DecoderStack::error_message() { - lock_guard lock(_mutex); + lock_guard lock(_output_mutex); return _error_message; } @@ -276,7 +276,7 @@ void DecoderStack::decode_data( } { - lock_guard lock(_mutex); + lock_guard lock(_output_mutex); _samples_decoded = chunk_end; } } @@ -349,7 +349,7 @@ void DecoderStack::annotation_callback(srd_proto_data *pdata, void *decoder) DecoderStack *const d = (DecoderStack*)decoder; assert(d); - lock_guard lock(d->_mutex); + lock_guard lock(d->_output_mutex); const Annotation a(pdata); diff --git a/pv/data/decoderstack.h b/pv/data/decoderstack.h index 43996184..308dce6e 100644 --- a/pv/data/decoderstack.h +++ b/pv/data/decoderstack.h @@ -131,7 +131,7 @@ private: std::list< boost::shared_ptr > _stack; - mutable boost::mutex _mutex; + mutable boost::mutex _output_mutex; int64_t _samples_decoded; std::map _rows;