Separate thumnail loading to different pool

This commit is contained in:
2022-04-18 09:55:47 +02:00
parent cba8a0bb9c
commit fabf3f0c1a
2 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -10,6 +10,7 @@
#include "rawimage.h"
class ImageRingList;
class QThreadPool;
class Image : public QObject
{
@@ -26,7 +27,7 @@ class Image : public QObject
public:
explicit Image(const QString name, int number, ImageRingList *ringList);
void load();
void loadThumbnail();
void loadThumbnail(QThreadPool *pool);
void release();
QString name() const;
RawImage* rawImage();
@@ -55,6 +56,7 @@ class ImageRingList : public QAbstractItemModel
QFileSystemWatcher m_fileSystemWatcher;
bool m_liveMode;
AnalyzeLevel m_analyzeLevel;
QThreadPool *m_thumbPool;
public:
explicit ImageRingList(QObject *parent = 0);
~ImageRingList();