X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fcorrelation_meter.cpp;h=72467455143aa0c3bbf5464a5769cb08149bff34;hb=4a90022f4e25a0189df638a9aba89238e6a9a4ce;hp=7b7683a5a1fd4b1158a154c71ced66cbcbd50797;hpb=392f9d1ccb835c05a3874c4bea163788b2c37024;p=nageru diff --git a/nageru/correlation_meter.cpp b/nageru/correlation_meter.cpp index 7b7683a..7246745 100644 --- a/nageru/correlation_meter.cpp +++ b/nageru/correlation_meter.cpp @@ -47,7 +47,7 @@ void CorrelationMeter::paintEvent(QPaintEvent *event) float correlation; { - unique_lock lock(correlation_mutex); + lock_guard lock(correlation_mutex); correlation = this->correlation; }