Skip to content

Commit

Permalink
plugins/swiotrefactor/max: Remove mutex.
Browse files Browse the repository at this point in the history
Signed-off-by: andrei.danila <[email protected]>
  • Loading branch information
andreidanila1 committed Mar 26, 2024
1 parent 30f61ff commit 4cddb62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class SCOPY_SWIOTREFACTOR_EXPORT DioDigitalChannel : public QWidget
QString m_selectedConfigMode;

friend class DioDigitalChannelController;
std::mutex m_mutex;

// plot
PlotWidget *m_plot;
Expand Down
2 changes: 0 additions & 2 deletions plugins/swiotrefactor/src/max14906/diodigitalchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ void DioDigitalChannel::initPlot()

void DioDigitalChannel::resetPlot()
{
std::lock_guard<std::mutex> lock(m_mutex);
m_yValues.clear();
m_xTime.clear();
for(int i = 0; i <= m_timeSpan; i++) {
Expand All @@ -116,7 +115,6 @@ void DioDigitalChannel::updateTimeScale(double newMax)

void DioDigitalChannel::addDataSample(double value)
{
std::lock_guard<std::mutex> lock(m_mutex);
m_yValues.push_back(value);
if(m_yValues.size() > m_timeSpan + 1) {
m_yValues.pop_front();
Expand Down

0 comments on commit 4cddb62

Please sign in to comment.