]> sigrok.org Git - pulseview.git/commitdiff
Renamed DecoderStack::_mutex to _output_mutex
authorJoel Holdsworth <redacted>
Sun, 2 Mar 2014 16:26:29 +0000 (16:26 +0000)
committerJoel Holdsworth <redacted>
Sun, 2 Mar 2014 17:39:58 +0000 (17:39 +0000)
pv/data/decoderstack.cpp
pv/data/decoderstack.h

index 716d778b390c1c344e2a829c53498b4d4e5894f8..3bb13284b425503c56786df5337e7c8018dfbb9d 100644 (file)
@@ -106,13 +106,13 @@ void DecoderStack::remove(int index)
 
 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;
 
@@ -147,7 +147,7 @@ void DecoderStack::get_annotation_subset(
        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);
@@ -158,7 +158,7 @@ void DecoderStack::get_annotation_subset(
 
 QString DecoderStack::error_message()
 {
-       lock_guard<mutex> lock(_mutex);
+       lock_guard<mutex> lock(_output_mutex);
        return _error_message;
 }
 
@@ -276,7 +276,7 @@ void DecoderStack::decode_data(
                }
 
                {
-                       lock_guard<mutex> lock(_mutex);
+                       lock_guard<mutex> 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<mutex> lock(d->_mutex);
+       lock_guard<mutex> lock(d->_output_mutex);
 
        const Annotation a(pdata);
 
index 43996184500abef02bb276186d56978afe79c07e..308dce6edde0ad8b480bf65beba7cc6b6ca7cac9 100644 (file)
@@ -131,7 +131,7 @@ private:
 
        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;