Fix job pausing to actually work, and always add Pause buttons to JobManagerViews...
[dcpomatic.git] / src / lib / job.h
index 97e3fc29637d292597d943f4c9e70a77cdd8dfad..b7dfc589132669fcff375caa1e60231c20054bc8 100644 (file)
@@ -125,6 +125,11 @@ private:
        mutable boost::mutex _progress_mutex;
        boost::optional<float> _progress;
 
+       /** condition to signal changes to pause/resume so that we know when to wake;
+           this could be a general _state_change if it made more sense.
+       */
+       boost::condition_variable _pause_changed;
+
        int _ran_for;
 };