From dde11f4253e41ad7c41c2bd64b0497e1f82539f5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 28 Jun 2020 00:59:21 +0200 Subject: [PATCH] Make _one_shot and _playing atomic. --- src/wx/gl_video_view.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index f129b6ed5..d9e03823b 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -72,8 +72,8 @@ private: boost::mutex _playing_mutex; boost::condition _thread_work_condition; - bool _playing; - bool _one_shot; + boost::atomic _playing; + boost::atomic _one_shot; boost::shared_ptr _timer; }; -- 2.30.2