summaryrefslogtreecommitdiff
path: root/src/lib/job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-06 20:59:58 +0000
committerCarl Hetherington <cth@carlh.net>2020-03-06 20:59:58 +0000
commite03d6f9bc6af9dfa8602c82cc52040a92144deaf (patch)
tree3ca44d6b77f8e9184063d7cd29d849b1f7b290c3 /src/lib/job.h
parentb93430a73313d705f7f51315db705cfcf9942297 (diff)
Destroy Job threads at the start of the subclass destructors,
so that the thread is gone before the object is torn down.
Diffstat (limited to 'src/lib/job.h')
-rw-r--r--src/lib/job.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h
index 0e57021e0..7047a7ba3 100644
--- a/src/lib/job.h
+++ b/src/lib/job.h
@@ -112,6 +112,7 @@ protected:
void set_message (std::string m);
int elapsed_sub_time () const;
void check_for_interruption_or_pause ();
+ void destroy_thread ();
boost::shared_ptr<const Film> _film;