Make _one_shot and _playing atomic.
[dcpomatic.git] / src / wx / gl_video_view.h
index 2f3c8c2a1c40ccb715f1aa296d5f177ce5ed5d29..d9e03823b5a506b99374334153a81241434fb25c 100644 (file)
@@ -68,12 +68,12 @@ private:
        boost::optional<dcp::Size> _size;
        bool _have_storage;
        bool _vsync_enabled;
-       boost::thread* _thread;
+       boost::thread _thread;
 
        boost::mutex _playing_mutex;
-       boost::condition _playing_condition;
-       bool _playing;
-       bool _one_shot;
+       boost::condition _thread_work_condition;
+       boost::atomic<bool> _playing;
+       boost::atomic<bool> _one_shot;
 
        boost::shared_ptr<wxTimer> _timer;
 };