Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Issue 2525073002: Initialize TaskScheduler in Mash. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
robliao, gab, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize TaskScheduler in Mash. This CL initializes TaskScheduler in MashRunner::RunMain() and sets a flag to redirect all SequencedWorkerPool tasks to it That means that all tasks posted to the |blocking_pool_| in service_manager::Context will be redirected to TaskScheduler. Call sites will be migrated to the base/task_scheduler/post_task.h API and the |blocking_pool_| will be removed in separate CLs. BUG=664996 Committed: https://crrev.com/57fc6249459477222cebba16f5d4c84f5e5dcee7 Cr-Commit-Position: refs/heads/master@{#434360}

Patch Set 1 #

Patch Set 2 : add TODO #

Total comments: 2

Patch Set 3 : clarified TODO #

Total comments: 2

Patch Set 4 : shared constant for max num threads #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M chrome/app/mash/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/mash/mash_runner.cc View 1 2 3 4 chunks +14 lines, -0 lines 0 comments Download
M services/service_manager/standalone/context.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/standalone/context.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
fdoray
PTAL TaskScheduler is shut down shortly before the SequencedWorkerPool that it replaces MashRunner::RunMain -> [added ...
4 years ago (2016-11-23 19:08:10 UTC) #6
robliao
On 2016/11/23 19:08:10, fdoray wrote: > PTAL > > TaskScheduler is shut down shortly before ...
4 years ago (2016-11-23 19:12:44 UTC) #7
gab
lgtm
4 years ago (2016-11-23 20:00:50 UTC) #8
fdoray
On 2016/11/23 19:12:44, robliao wrote: > On 2016/11/23 19:08:10, fdoray wrote: > > PTAL > ...
4 years ago (2016-11-23 20:37:23 UTC) #9
robliao
On 2016/11/23 20:37:23, fdoray wrote: > On 2016/11/23 19:12:44, robliao wrote: > > On 2016/11/23 ...
4 years ago (2016-11-23 20:45:01 UTC) #10
fdoray
sky@: PTAL
4 years ago (2016-11-23 21:00:15 UTC) #12
robliao
lgtm + nit on the comment. https://codereview.chromium.org/2525073002/diff/20001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2525073002/diff/20001/chrome/app/mash/mash_runner.cc#newcode184 chrome/app/mash/mash_runner.cc:184: // service_manager::ServiceRunner. https://crbug.com/664996 ...
4 years ago (2016-11-23 21:02:20 UTC) #13
fdoray
sky@: PTAL https://codereview.chromium.org/2525073002/diff/20001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2525073002/diff/20001/chrome/app/mash/mash_runner.cc#newcode184 chrome/app/mash/mash_runner.cc:184: // service_manager::ServiceRunner. https://crbug.com/664996 On 2016/11/23 21:02:20, robliao ...
4 years ago (2016-11-23 21:09:14 UTC) #14
sky
https://codereview.chromium.org/2525073002/diff/40001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2525073002/diff/40001/chrome/app/mash/mash_runner.cc#newcode132 chrome/app/mash/mash_runner.cc:132: constexpr int kNumThreads = 3; Where does the 3 ...
4 years ago (2016-11-23 21:47:36 UTC) #15
fdoray
https://codereview.chromium.org/2525073002/diff/40001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2525073002/diff/40001/chrome/app/mash/mash_runner.cc#newcode132 chrome/app/mash/mash_runner.cc:132: constexpr int kNumThreads = 3; On 2016/11/23 21:47:35, sky ...
4 years ago (2016-11-23 21:53:43 UTC) #16
sky
LGTM - a shared constant would be nice for this.
4 years ago (2016-11-23 23:02:59 UTC) #17
fdoray
On 2016/11/23 23:02:59, sky wrote: > LGTM - a shared constant would be nice for ...
4 years ago (2016-11-24 15:31:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2525073002/60001
4 years ago (2016-11-24 15:32:17 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/304192) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-11-24 16:02:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2525073002/60001
4 years ago (2016-11-24 16:05:40 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-24 17:33:35 UTC) #27
commit-bot: I haz the power
4 years ago (2016-11-24 17:37:29 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/57fc6249459477222cebba16f5d4c84f5e5dcee7
Cr-Commit-Position: refs/heads/master@{#434360}

Powered by Google App Engine
This is Rietveld 408576698