From: Carl Hetherington Date: Sat, 27 Jun 2020 22:59:21 +0000 (+0200) Subject: Make _one_shot and _playing atomic. X-Git-Tag: v2.15.85~3 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=dde11f4253e41ad7c41c2bd64b0497e1f82539f5 Make _one_shot and _playing atomic. --- 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; };