Reland [base] Require task posters to specify an explicit destination
This patch makes it a requirement for all task traits to specify their thread affinity. Previously task traits that did not name a specific thread would implicitly run on the thread pool, which could be surprising. To make this more obvious, thread pool tasks must now use the base::ThreadPool() trait. This is the final reland of https://chromium-review.googlesource.com/c/chromium/src/+/1635827 (will attempt to fix errors that caused original revert before relanding). Bug: 968047 Change-Id: Ice339db270a27815b2be68200930e5bc105e8a96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759056 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by:François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#688782}
Showing
Please register or sign in to comment