From 683c66d81898e1d7d4cb814a5740169529c3313e Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 19 Sep 2022 18:26:36 -0400 Subject: Scanning can now be cancelled. Fix terminate() of thread pool blocking if wait() is already called. --- qdeduper/sigdb_qt.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qdeduper/sigdb_qt.hpp') 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 &files, int njobs); + void interrupt_scan(); size_t num_groups(); std::vector get_group(size_t gid); std::map, double> group_distances(size_t gid); -- cgit v1.2.3