mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 03:27:34 +02:00
Bug threadpool
This commit is contained in:
parent
d32c3df1d0
commit
a0dc87c19b
3 changed files with 12 additions and 0 deletions
|
@ -62,6 +62,10 @@ class ThumbnailCache(QObject):
|
|||
cleaningThread = None
|
||||
workerThreads = ThreadPool(processes=3)
|
||||
|
||||
def __del__(self):
|
||||
self.workerThreads.terminate()
|
||||
self.workerThreads.join()
|
||||
|
||||
@staticmethod
|
||||
def initialize():
|
||||
"""Initialize static fields in cache class and cache directory on disk."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue