summaryrefslogtreecommitdiff
path: root/src/lib/job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-13 21:57:40 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-13 21:57:40 +0100
commit05c37bfdb86be26497d5baa448a0cbda20e33bed (patch)
treefed504a9785d818940097810968b6cccb5780b3f /src/lib/job.h
parent6718fb9d02d0b55ccd00eda8faa027972d46a4b4 (diff)
Fix crashes on x-thread signal emission.
Fix crashes on x-thread signal emission if the emitting object is destroyed between the storage of the message on the queue and the emission of the object in the UI thread.
Diffstat (limited to 'src/lib/job.h')
-rw-r--r--src/lib/job.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/job.h b/src/lib/job.h
index 7c6707880..8fe87747c 100644
--- a/src/lib/job.h
+++ b/src/lib/job.h
@@ -24,6 +24,7 @@
#ifndef DCPOMATIC_JOB_H
#define DCPOMATIC_JOB_H
+#include "signaller.h"
#include <boost/thread/mutex.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/signals2.hpp>
@@ -35,7 +36,7 @@ class Film;
/** @class Job
* @brief A parent class to represent long-running tasks which are run in their own thread.
*/
-class Job : public boost::enable_shared_from_this<Job>, public boost::noncopyable
+class Job : public boost::enable_shared_from_this<Job>, public Signaller, public boost::noncopyable
{
public:
Job (boost::shared_ptr<const Film>);