[ui] ChunksMonitor: asynchronous status files modification time polling

* make last modification time check on status asynchronous using a dedicated thread + use a ThreadPool to run tasks in parallel
* avoid UI freeze when checking for status updates + increase performances
This commit is contained in:
Yann Lanthony 2019-05-07 12:29:53 +02:00
parent 55dba55d19
commit e40b0e57b8
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642
2 changed files with 108 additions and 28 deletions

View file

@ -101,8 +101,9 @@ class MeshroomApp(QApplication):
# additional context properties
self.engine.rootContext().setContextProperty("_PaletteManager", PaletteManager(self.engine, parent=self))
self.engine.rootContext().setContextProperty("MeshroomApp", self)
# Request any potential computation to stop on exit
self.aboutToQuit.connect(r.stopExecution)
# request any potential computation to stop on exit
self.aboutToQuit.connect(r.stopChildThreads)
parser = argparse.ArgumentParser(prog=args[0], description='Launch Meshroom UI.')
parser.add_argument('--project', metavar='MESHROOM_FILE', type=str, required=False,