X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fcorrelation_meter.cpp;h=72467455143aa0c3bbf5464a5769cb08149bff34;hb=27f5ea8eddf09244887498b61403cc8d725664ad;hp=7b7683a5a1fd4b1158a154c71ced66cbcbd50797;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;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; }