mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-11 08:06:52 +02:00
[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:
parent
55dba55d19
commit
e40b0e57b8
2 changed files with 108 additions and 28 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue