X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fcorrelation_meter.h;h=fa92aec6a20d6d44aa301dc8d6e2fafafed5cf7a;hb=d1e616378bda406c96acf7c2dc975b7ab2e8165e;hp=ea01e04034ecc12196c6b3d13005eaca438bcb74;hpb=392f9d1ccb835c05a3874c4bea163788b2c37024;p=nageru diff --git a/nageru/correlation_meter.h b/nageru/correlation_meter.h index ea01e04..fa92aec 100644 --- a/nageru/correlation_meter.h +++ b/nageru/correlation_meter.h @@ -19,7 +19,7 @@ public: CorrelationMeter(QWidget *parent); void set_correlation(float correlation) { - std::unique_lock lock(correlation_mutex); + std::lock_guard lock(correlation_mutex); this->correlation = correlation; QMetaObject::invokeMethod(this, "update", Qt::AutoConnection); }