Lines Matching refs:maxThreads
536 uint32_t maxThreads = std::max(ConcurrentHelper::GetMaxThreads(), DEFAULT_THREADS);
537 maxThreads = (timeoutWorkers == 0) ? maxThreads : maxThreads + 2; // 2: extra threads
538 if (workerCount < maxThreads && idleCount < targetNum) {
539 uint32_t step = std::min(maxThreads, targetNum) - idleCount;
540 // Prevent the total number of expanded threads from exceeding maxThreads
541 if (step + workerCount > maxThreads) {
542 step = maxThreads - workerCount;
545 HILOG_INFO("taskpool:: maxThreads: %{public}u, created num: %{public}u, total num: %{public}u",
546 maxThreads, step, GetThreadNum());