diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-28 00:59:21 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-28 01:00:41 +0200 |
| commit | dde11f4253e41ad7c41c2bd64b0497e1f82539f5 (patch) | |
| tree | 1cbb6ca732f47c1cdb30d3be7bc36bfc5c1be743 | |
| parent | 91152d27421ae3674c782a644e23df1a9dbc8f42 (diff) | |
Make _one_shot and _playing atomic.
| -rw-r--r-- | src/wx/gl_video_view.h | 4 |
1 files 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<bool> _playing; + boost::atomic<bool> _one_shot; boost::shared_ptr<wxTimer> _timer; }; |
