}
Job::~Job ()
+{
+#ifdef DCPOMATIC_DEBUG
+ /* Any subclass should have called stop_thread in its destructor */
+ assert (!_thread);
+#endif
+}
+
+void
+Job::stop_thread ()
{
if (_thread) {
_thread->interrupt ();
}
delete _thread;
+ _thread = 0;
}
/** Start the job in a separate thread, returning immediately */