summaryrefslogtreecommitdiff
path: root/core/templates
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-19 09:39:21 +0100
committerGitHub <noreply@github.com>2021-11-19 09:39:21 +0100
commitfc9de5ba7f316ab230f49518ebdc7ddb79adbe3e (patch)
tree83ded1da3eaa8144f874db3fe3a4426ed7993e93 /core/templates
parentfb47e3045841a1e250cf87cd3b192473b9963e50 (diff)
parent4ed1d977fcca5922cf8254b1ffbf16cf47b310b4 (diff)
Merge pull request #54499 from Faless/threads/4.x_work_pool_default
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/thread_work_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/thread_work_pool.cpp b/core/templates/thread_work_pool.cpp
index 17969a2c90..710f043a4a 100644
--- a/core/templates/thread_work_pool.cpp
+++ b/core/templates/thread_work_pool.cpp
@@ -47,7 +47,7 @@ void ThreadWorkPool::_thread_function(void *p_user) {
void ThreadWorkPool::init(int p_thread_count) {
ERR_FAIL_COND(threads != nullptr);
if (p_thread_count < 0) {
- p_thread_count = OS::get_singleton()->get_processor_count();
+ p_thread_count = OS::get_singleton()->get_default_thread_pool_size();
}
thread_count = p_thread_count;