forked from qt-creator/qt-creator
Reduce CPU load of test parsing
Use a thread pool with reduced max thread count. Task-number: QTCREATORBUG-18185 Change-Id: I18bd3de82365edaf21d8dcf9c89035da1ac74756 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -38,6 +38,10 @@ namespace Core {
|
||||
class Id;
|
||||
}
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QThreadPool;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
@@ -106,6 +110,7 @@ private:
|
||||
QVector<ITestParser *> m_testCodeParsers; // ptrs are still owned by TestFrameworkManager
|
||||
QTimer m_reparseTimer;
|
||||
ITestParser *m_updateParser = nullptr;
|
||||
QThreadPool *m_threadPool = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user