commit | b11973d8ba8c84d8f139dbaa1197232484bad2f3 | [log] [tgz] |
---|---|---|
author | Etienne Pierre-doray <etiennep@chromium.org> | Thu Jul 18 16:10:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 18 16:10:35 2019 |
tree | 0c362dffd0fe77d45f8b806c070a404f8fd8cdb1 | |
parent | 62fb435e3e1b43a3dbcf9f21e3da986683e7fec5 [diff] |
[ThreadPool]: Support TaskSource with concurrency > 1 in ThreadPool. This CL adapts ThreadGroup::GetWork() to spawn multiple workers with the same TaskSource until the desired concurrency is reached. In addition, ThreadGroupTest.PostAfterDestroy was replaced with ThreadPoolImplTestAllTraitsExecutionModes.PostTaskAfterDestroy. The original intention was to test that TaskRunners call PooledTaskRunnerDelegate::Exists() and avoid crashing when the ThreadPool is destroyed. A ThreadGroup doesn't implement PooledTaskRunnerDelegate however and the test only rely on task tracker being shutdown. The replacement fixes this as a ThreadPool test. Bug: 839091 Change-Id: I3af5789f1ec5c1b9bbed36686de4797af3cbee55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1582427 Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#678704}
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 .