From: Steinar H. Gunderson Date: Thu, 20 Jul 2023 13:37:10 +0000 (+0200) Subject: playing is used from multiple threads, so it must be atomic. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=25c11342f6317f8209c0e8fe88b6843ccf50af4f;p=pkanalytics playing is used from multiple threads, so it must be atomic. --- diff --git a/mainwindow.h b/mainwindow.h index f7c8830..95dfae7 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -44,6 +44,6 @@ private: FormationsModel *offensive_formations; FormationsModel *defensive_formations; bool seeking = false; - bool playing = true; + std::atomic playing{true}; std::optional buffered_seek; };