Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
99805d3c
Commit
99805d3c
authored
Mar 11, 2009
by
Roberto Raggi
Browse files
Prune the list of the futures.
parent
047e5af2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppmodelmanager.cpp
View file @
99805d3c
...
...
@@ -712,6 +712,17 @@ QFuture<void> CppModelManager::refreshSourceFiles(const QStringList &sourceFiles
QFuture
<
void
>
result
=
QtConcurrent
::
run
(
&
CppModelManager
::
parse
,
preproc
,
sourceFiles
);
if
(
m_synchronizer
.
futures
().
size
()
>
10
)
{
QList
<
QFuture
<
void
>
>
futures
=
m_synchronizer
.
futures
();
m_synchronizer
.
clearFutures
();
foreach
(
QFuture
<
void
>
future
,
futures
)
{
if
(
!
(
future
.
isFinished
()
||
future
.
isCanceled
()))
m_synchronizer
.
addFuture
(
future
);
}
}
m_synchronizer
.
addFuture
(
result
);
if
(
sourceFiles
.
count
()
>
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment