diff options
Diffstat (limited to 'platform/default/mbgl/util/shared_thread_pool.cpp')
-rw-r--r-- | platform/default/mbgl/util/shared_thread_pool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/default/mbgl/util/shared_thread_pool.cpp b/platform/default/mbgl/util/shared_thread_pool.cpp index 7a42df21de..a10b314cd3 100644 --- a/platform/default/mbgl/util/shared_thread_pool.cpp +++ b/platform/default/mbgl/util/shared_thread_pool.cpp @@ -2,11 +2,11 @@ namespace mbgl { -std::shared_ptr<ThreadPool> sharedThreadPool() { +std::shared_ptr<ThreadPool> sharedThreadPool(std::size_t threadPoolSize) { static std::weak_ptr<ThreadPool> weak; auto pool = weak.lock(); if (!pool) { - weak = pool = std::make_shared<ThreadPool>(4); + weak = pool = std::make_shared<ThreadPool>(threadPoolSize); } return pool; } |