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