commit | 7f77731cd11dd4abce0f36657811a9e1e67d1635 | [log] [tgz] |
---|---|---|
author | Francois Doray <fdoray@chromium.org> | Thu May 16 12:26:31 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 16 12:26:31 2019 |
tree | 45b9e52c18b5d0e55fb6edaf75586d7764ca5dbb | |
parent | 8b6aa9b65e6fb858a34fdec834707a05acb62a2c [diff] |
ThreadPool: Reduce the number of configurable options. With this CL: //base: - The maximum number of BEST_EFFORT tasks that can run concurrently when there are no ScopedBlockingCalls is hard-coded to 2. - The reclaim time has a default value of 30 seconds in ThreadPool::InitParams. It should not be overridden outside of tests. - The WorkerThreadBackwardCompatibility enum is merged with the WorkerEnvironment enum. This makes sense because choosing a non-default value in both enums wasn't supported. - A HAS_NATIVE_THREAD_POOL() macro is added to avoid duplication of the list of platforms that support native pools. //content: - The maximum number of threads in the foreground pool is hard-coded in //content. It is no longer possible to change it via a field trial. If we decide to experiment again with this, we should read field trial values directly from //base instead of using Content(Browser|Renderer)Client. Change-Id: I667b5fb946b62756a0d78ca297bcfdc6b3d8fb0c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1600838 Reviewed-by: Paul Jensen <pauljensen@chromium.org> Reviewed-by: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Sorin Jianu <sorin@chromium.org> Reviewed-by: Yuwei Huang <yuweih@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: Rohit Rao <rohitrao@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#660360}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .