Use more local methods rather than calling out to Film in the Decoder.
[dcpomatic.git] / src / lib / job_manager.h
index d1d33cfc2ce7e7dc3ac4693d579d7309e0ec30e5..4b70738f0bb4a121c7e7b9e5c7c699ccfe3d4aa1 100644 (file)
@@ -28,19 +28,16 @@ class Job;
 
 /** @class JobManager
  *  @brief A simple scheduler for jobs.
- *
- *  JobManager simply keeps a list of pending jobs, and assumes that all the jobs
- *  are sufficiently CPU intensive that there is no point running them in parallel;
- *  so jobs are just run one after the other.
  */
 class JobManager
 {
 public:
 
-       void add (boost::shared_ptr<Job>);
+       boost::shared_ptr<Job> add (boost::shared_ptr<Job>);
        void add_after (boost::shared_ptr<Job> after, boost::shared_ptr<Job> j);
        std::list<boost::shared_ptr<Job> > get () const;
        bool work_to_do () const;
+       bool errors () const;
 
        static JobManager* instance ();