+
+shared_ptr<Job>
+JobManager::add_after (shared_ptr<Job> after, shared_ptr<Job> j)
+{
+ {
+ boost::mutex::scoped_lock lm (_mutex);
+ auto i = find (_jobs.begin(), _jobs.end(), after);
+ DCPOMATIC_ASSERT (i != _jobs.end());
+ _jobs.insert (i, j);
+ _schedule_condition.notify_all();
+ }
+
+ emit (boost::bind(boost::ref(JobAdded), weak_ptr<Job>(j)));
+
+ return j;
+}
+
+
+list<shared_ptr<Job>>