<table><tr><td style="">mwolff created this revision.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8906" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Suspending only stopped the timer and suspended the thread weaver<br />
queue. This is not enough: When startTimer is called the next time,<br />
e.g. via ::addDocument, it would still trigger a call of<br />
parseDocumentsInternal and eventually the creation of a parse job.<br />
That one wouldn't be able to start working, as the queue is suspended.<br />
But for clang parse jobs, it would already try to look for the<br />
foreground parse environment (i.e. include paths and such). A future<br />
patch will suspend the background parser while the core is being<br />
initialized, which ensures that we won't create parse jobs with<br />
broken environments at startup.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8906" rel="noreferrer">https://phabricator.kde.org/D8906</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/language/backgroundparser/backgroundparser.cpp<br />
kdevplatform/language/backgroundparser/tests/test_backgroundparser.cpp<br />
kdevplatform/language/backgroundparser/tests/test_backgroundparser.h</div></div></div><br /><div><strong>To: </strong>mwolff<br /><strong>Cc: </strong>kdevelop-devel<br /></div>