projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Speed up content discovery:
[dcpomatic.git]
/
src
/
lib
/
job_manager.h
diff --git
a/src/lib/job_manager.h
b/src/lib/job_manager.h
index aafb7aa67aa8609ce8214ef2e500cbc6e62580af..e0b72994df9dd2ab87495df0c6be3eb710afca2e 100644
(file)
--- a/
src/lib/job_manager.h
+++ b/
src/lib/job_manager.h
@@
-26,6
+26,7
@@
#include <boost/thread/mutex.hpp>
#include <boost/thread.hpp>
#include <boost/signals2.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread.hpp>
#include <boost/signals2.hpp>
+#include <boost/thread/condition.hpp>
#include <list>
class Job;
#include <list>
class Job;
@@
-78,10
+79,13
@@
private:
void scheduler ();
void start ();
void priority_changed ();
void scheduler ();
void start ();
void priority_changed ();
+ void job_finished ();
mutable boost::mutex _mutex;
mutable boost::mutex _mutex;
+ boost::condition _empty_condition;
/** List of jobs in the order that they will be executed */
std::list<boost::shared_ptr<Job> > _jobs;
/** List of jobs in the order that they will be executed */
std::list<boost::shared_ptr<Job> > _jobs;
+ std::list<boost::signals2::connection> _connections;
bool _terminate;
bool _paused;
boost::shared_ptr<Job> _paused_job;
bool _terminate;
bool _paused;
boost::shared_ptr<Job> _paused_job;