forked from qt-creator/qt-creator
CppElementEvaluator: Use QtConcurrent invocation for async run
Change-Id: Idc67ecd4e9e95c5893a04ca1a9ee7b30662ec664 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -821,16 +821,10 @@ FilePaths Snapshot::filesDependingOn(const FilePath &filePath) const
|
||||
return m_deps.filesDependingOn(filePath);
|
||||
}
|
||||
|
||||
void Snapshot::updateDependencyTable() const
|
||||
{
|
||||
QFutureInterfaceBase futureInterface;
|
||||
updateDependencyTable(futureInterface);
|
||||
}
|
||||
|
||||
void Snapshot::updateDependencyTable(QFutureInterfaceBase &futureInterface) const
|
||||
void Snapshot::updateDependencyTable(const std::optional<QFuture<void>> &future) const
|
||||
{
|
||||
if (m_deps.files.isEmpty())
|
||||
m_deps.build(futureInterface, *this);
|
||||
m_deps.build(future, *this);
|
||||
}
|
||||
|
||||
bool Snapshot::operator==(const Snapshot &other) const
|
||||
|
||||
Reference in New Issue
Block a user