summaryrefslogtreecommitdiff
path: root/src/lib/job_manager.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-10 12:53:06 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-10 12:53:06 +0100
commit9dd38ef2f05b24ba669acb9805e0914ac227fff2 (patch)
treeaa3b2e4d768764238bb498ca8ad62056cfb95809 /src/lib/job_manager.h
parenta097506d4867fec47406283caa5b262a21791585 (diff)
Try to not start jobs if a dependant fails.
Diffstat (limited to 'src/lib/job_manager.h')
-rw-r--r--src/lib/job_manager.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/job_manager.h b/src/lib/job_manager.h
index 8b79fd67d..4b70738f0 100644
--- a/src/lib/job_manager.h
+++ b/src/lib/job_manager.h
@@ -28,16 +28,12 @@ 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;