1 // Copyright 2016 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_TASK_THREAD_POOL_INITIALIZATION_UTIL_H_ 6 #define BASE_TASK_THREAD_POOL_INITIALIZATION_UTIL_H_ 7 8 #include <stddef.h> 9 10 #include "base/base_export.h" 11 12 namespace base { 13 14 // Computes a value that may be used as the maximum number of threads in a 15 // ThreadGroup. Developers may use other methods to choose this maximum. 16 BASE_EXPORT size_t 17 RecommendedMaxNumberOfThreadsInThreadGroup(size_t min, 18 size_t max, 19 double cores_multiplier, 20 size_t offset); 21 22 } // namespace base 23 24 #endif // BASE_TASK_THREAD_POOL_INITIALIZATION_UTIL_H_ 25