diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-24 23:58:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-24 23:58:26 +0100 |
| commit | 110d7d4e111c2db31489296587d855328c5d8b34 (patch) | |
| tree | afe1f5f8912cb292f51d5f07b5947c291fbb7da4 /src/lib/job_manager.h | |
| parent | 165edfe3bb8afd0531729f732701756d711dde16 (diff) | |
Fix shared_ptr for Film.
Diffstat (limited to 'src/lib/job_manager.h')
| -rw-r--r-- | src/lib/job_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/job_manager.h b/src/lib/job_manager.h index 4b70738f0..cc1c1d28f 100644 --- a/src/lib/job_manager.h +++ b/src/lib/job_manager.h @@ -23,6 +23,7 @@ #include <list> #include <boost/thread/mutex.hpp> +#include <boost/signals2.hpp> class Job; @@ -39,6 +40,8 @@ public: bool work_to_do () const; bool errors () const; + boost::signals2::signal<void (bool)> ActiveJobsChanged; + static JobManager* instance (); private: @@ -48,5 +51,7 @@ private: mutable boost::mutex _mutex; std::list<boost::shared_ptr<Job> > _jobs; + bool _last_active_jobs; + static JobManager* _instance; }; |
