MCPcopy Create free account
hub / github.com/KDE/kdevelop / setThreadCount

Method setThreadCount

kdevplatform/language/backgroundparser/backgroundparser.cpp:863–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void BackgroundParser::setThreadCount(int threadCount)
864{
865 Q_D(BackgroundParser);
866
867 if (d->m_threads != threadCount) {
868 d->m_threads = threadCount;
869 d->m_weaver.setMaximumNumberOfThreads(d->m_threads + 1); //1 Additional thread for high-priority parsing
870 }
871}
872
873int BackgroundParser::threadCount() const
874{

Callers 5

applyMethod · 0.80
loadSettingsMethod · 0.80
initTestCaseMethod · 0.80
initMethod · 0.80
testIncludeLockingMethod · 0.80

Calls

no outgoing calls

Tested by 2

initTestCaseMethod · 0.64
testIncludeLockingMethod · 0.64