Don't share _terminate.
[dcpomatic.git] / src / lib / encoder.h
index 9b1b528bbd305c9c203f4682158127346110b7c9..76c87a9f7ad2ea57468a58408ea3ca663821340b 100644 (file)
@@ -95,7 +95,9 @@ private:
        bool _left_done;
        bool _right_done;
 
-       boost::atomic<bool> _terminate;
+       /* XXX: probably should be atomic */
+       bool _terminate_enqueue;
+       bool _terminate_encoding;
        /** Mutex for _threads */
        mutable boost::mutex _threads_mutex;
        std::list<boost::thread *> _threads;