]> git.sesse.net Git - pkanalytics/commitdiff
playing is used from multiple threads, so it must be atomic.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Jul 2023 13:37:10 +0000 (15:37 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Jul 2023 13:37:10 +0000 (15:37 +0200)
mainwindow.h

index f7c8830b8125ba6023cbe0f6a9f7eeb01f184ac2..95dfae78e3ae060eaf7745c041275d8a5a97a11b 100644 (file)
@@ -44,6 +44,6 @@ private:
        FormationsModel *offensive_formations;
        FormationsModel *defensive_formations;
        bool seeking = false;
-       bool playing = true;
+       std::atomic<bool> playing{true};
        std::optional<uint64_t> buffered_seek;
 };