Merge pull request #96322 from RandomShaper/wtp_info

WorkerThreadPool: Print info about thread count at startup
This commit is contained in:
Rémi Verschelde 2024-08-30 23:37:58 +02:00
commit 4c0ce657d5
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 0 deletions

View File

@ -687,6 +687,8 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio)
max_low_priority_threads = CLAMP(p_thread_count * p_low_priority_task_ratio, 1, p_thread_count - 1);
print_verbose(vformat("WorkerThreadPool: %d threads, %d max low-priority.", p_thread_count, max_low_priority_threads));
threads.resize(p_thread_count);
for (uint32_t i = 0; i < threads.size(); i++) {