MCPcopy Create free account
hub / github.com/cculianu/Fulcrum / setMaxThreadCount

Method setMaxThreadCount

src/ThreadPool.cpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143uint64_t ThreadPool::overflows() const noexcept { return noverflows.load(); }
144int ThreadPool::maxThreadCount() const noexcept { return pool->maxThreadCount(); }
145bool ThreadPool::setMaxThreadCount(int max) {
146 if (max < 1)
147 return false;
148 pool->setMaxThreadCount(max);
149 return pool->maxThreadCount() == max;
150}
151
152QVariantMap ThreadPool::stats() const noexcept
153{

Callers 2

AdminServerMethod · 0.80
parseArgsMethod · 0.80

Calls 1

maxThreadCountMethod · 0.80

Tested by

no test coverage detected