diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-19 18:26:36 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-19 18:27:15 -0400 |
commit | 683c66d81898e1d7d4cb814a5740169529c3313e (patch) | |
tree | 2bd09916fce34141b3ce00822f816485fe1cc8dd /qdeduper/sigdb_qt.hpp | |
parent | 817075ec9bd6bd656a4a6dc23363e950474b21d5 (diff) | |
download | deduper-683c66d81898e1d7d4cb814a5740169529c3313e.tar.xz |
Scanning can now be cancelled.
Fix terminate() of thread pool blocking if wait() is already called.
Diffstat (limited to 'qdeduper/sigdb_qt.hpp')
-rw-r--r-- | qdeduper/sigdb_qt.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qdeduper/sigdb_qt.hpp b/qdeduper/sigdb_qt.hpp index 070662d..112ffa9 100644 --- a/qdeduper/sigdb_qt.hpp +++ b/qdeduper/sigdb_qt.hpp @@ -32,6 +32,7 @@ public: bool valid(); void scan_files(const std::vector<fs::path> &files, int njobs); + void interrupt_scan(); size_t num_groups(); std::vector<size_t> get_group(size_t gid); std::map<std::pair<size_t, size_t>, double> group_distances(size_t gid); |