diff transform/ModelTransformer.h @ 1079:6ea7761a418b

Emit a signal if transform fails
author Chris Cannam
date Wed, 10 Jun 2015 13:11:45 +0100
parents b109b88bfa85
children 5a1198083d9a
line wrap: on
line diff
--- a/transform/ModelTransformer.h	Wed Jun 10 13:10:26 2015 +0100
+++ b/transform/ModelTransformer.h	Wed Jun 10 13:11:45 2015 +0100
@@ -68,6 +68,12 @@
     void abandon() { m_abandoned = true; }
 
     /**
+     * Return true if the processing thread is being or has been
+     * abandoned, i.e. if abandon() has been called.
+     */
+    bool isAbandoned() const { return m_abandoned; }
+    
+    /**
      * Return the input model for the transform.
      */
     Model *getInputModel()  { return m_input.getModel(); }