diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-29 16:33:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-29 16:33:50 +0100 |
| commit | f80d8d37323394113d6491e1cae271e32b2de5b4 (patch) | |
| tree | 47092130d640cbaba3bc773b323f55c3fadb64d5 /src/lib/job.h | |
| parent | bd4c3ae31019b2c6217f269a7623f6c2279067c1 (diff) | |
Increase frequency of progres updates on long jobs (#900).
Diffstat (limited to 'src/lib/job.h')
| -rw-r--r-- | src/lib/job.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/job.h b/src/lib/job.h index a6777bc44..7bc051142 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -125,9 +125,10 @@ private: time_t _start_time; std::string _sub_name; - /** mutex for _progress */ + /** mutex for _progress and _last_progress_update */ mutable boost::mutex _progress_mutex; boost::optional<float> _progress; + boost::optional<struct timeval> _last_progress_update; /** 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. |
