Cleanup: make a temporary for the content list.
[dcpomatic.git] / src / lib / job_manager.h
index 71db33fd6bf9d2b14fe8037ec1c56a5d7de1de67..435c250d194f015eff06f0e97d45779e2156dfb9 100644 (file)
@@ -99,16 +99,17 @@ private:
        void job_finished ();
 
        mutable boost::mutex _mutex;
-       boost::condition _empty_condition;
+       boost::condition _schedule_condition;
        /** List of jobs in the order that they will be executed */
        std::list<std::shared_ptr<Job>> _jobs;
        std::list<boost::signals2::connection> _connections;
        bool _terminate = false;
-       bool _paused = false;
-       std::shared_ptr<Job> _paused_job;
 
        boost::optional<std::string> _last_active_job;
        boost::thread _scheduler;
 
+       /** true if all jobs should be paused */
+       bool _paused = false;
+
        static JobManager* _instance;
 };