diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-24 23:26:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-24 23:26:18 +0100 |
| commit | 19556e0f1bb854fffffc7d473dea5335c85c667a (patch) | |
| tree | 185de1a1ceb760ea24d2fa3f9d907c0ae61315bc /src/lib/job.h | |
| parent | 819590f9f8217235ebf4467b1d24e1aec1f97c29 (diff) | |
Fix job pausing to actually work, and always add Pause buttons to JobManagerViews (part of #344).
Diffstat (limited to 'src/lib/job.h')
| -rw-r--r-- | src/lib/job.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h index 97e3fc296..b7dfc5891 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -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; }; |
