Renamed pv::SigSession::_state_mutex to pv::SigSession::_sampling_mutex
[pulseview.git] / pv / sigsession.cpp
index b9ccc2b613d9d06f84a4ebab7caa2aa2eb8d0ab0..adad2c5ee0cc51304f928e92445471d7ef88c2d8 100644 (file)
@@ -64,7 +64,7 @@ void SigSession::load_file(const string &name)
 
 SigSession::capture_state SigSession::get_capture_state() const
 {
 
 SigSession::capture_state SigSession::get_capture_state() const
 {
-       lock_guard<mutex> lock(_state_mutex);
+       lock_guard<mutex> lock(_sampling_mutex);
        return _capture_state;
 }
 
        return _capture_state;
 }
 
@@ -105,7 +105,7 @@ boost::shared_ptr<LogicData> SigSession::get_data()
 
 void SigSession::set_capture_state(capture_state state)
 {
 
 void SigSession::set_capture_state(capture_state state)
 {
-       lock_guard<mutex> lock(_state_mutex);
+       lock_guard<mutex> lock(_sampling_mutex);
        _capture_state = state;
        capture_state_changed(state);
 }
        _capture_state = state;
        capture_state_changed(state);
 }