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.cpp | |
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.cpp')
-rw-r--r-- | qdeduper/sigdb_qt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qdeduper/sigdb_qt.cpp b/qdeduper/sigdb_qt.cpp index 692f9c7..67cc3e6 100644 --- a/qdeduper/sigdb_qt.cpp +++ b/qdeduper/sigdb_qt.cpp @@ -91,6 +91,11 @@ void SignatureDB::scan_files(const std::vector<fs::path> &files, int njobs) create_priv_struct(); } +void SignatureDB::interrupt_scan() +{ + if (sdb) + sdb->populate_interrupt(); +} size_t SignatureDB::num_groups() { |