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

Issue 2501763002: Add Thread Standby Policy SchedulerWorkerPoolImpl (Closed)

Created:
4 years, 1 month ago by robliao
Modified:
4 years, 1 month ago
Reviewers:
danakj, gab, fdoray
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Thread Standby Policy SchedulerWorkerPoolImpl This change allows callers to specify if a thread should always be on standby to receive tasks or not. BUG=664996 TBR=danakj for signature change in base/threading/sequenced_worker_pool_unittest.cc Committed: https://crrev.com/acfa7150dd0f8a61a64ac8ae8e5d156407fb866d Cr-Commit-Position: refs/heads/master@{#432919}

Patch Set 1 #

Total comments: 8

Patch Set 2 : CR Feedback #

Total comments: 6

Patch Set 3 : CR Feedback #

Patch Set 4 : Rebase to edc7bea #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -22 lines) Patch
M base/task_scheduler/scheduler_worker_pool_impl.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_impl.cc View 1 2 5 chunks +21 lines, -4 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_impl_unittest.cc View 4 chunks +38 lines, -6 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_params.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_params.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl_unittest.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M base/threading/sequenced_worker_pool_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/task_scheduler_util/initialization_util.cc View 1 2 3 5 chunks +15 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (32 generated)
robliao
4 years, 1 month ago (2016-11-14 22:50:56 UTC) #2
fdoray
https://codereview.chromium.org/2501763002/diff/1/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2501763002/diff/1/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode806 base/task_scheduler/scheduler_worker_pool_impl.cc:806: idle_workers_stack_.Remove(worker); Add a TODO to honor StandbyThreadPolicy::ONE here. Let's ...
4 years, 1 month ago (2016-11-15 15:27:02 UTC) #3
robliao
Comments applied. Thanks! https://codereview.chromium.org/2501763002/diff/1/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2501763002/diff/1/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode806 base/task_scheduler/scheduler_worker_pool_impl.cc:806: idle_workers_stack_.Remove(worker); On 2016/11/15 15:27:02, fdoray wrote: ...
4 years, 1 month ago (2016-11-15 15:57:19 UTC) #4
fdoray
lgtm
4 years, 1 month ago (2016-11-15 16:00:46 UTC) #5
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/2501763002/20001
4 years, 1 month ago (2016-11-15 17:58:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/304526)
4 years, 1 month ago (2016-11-15 18:09:02 UTC) #17
gab
lgtm % comments https://codereview.chromium.org/2501763002/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2501763002/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode460 base/task_scheduler/scheduler_worker_pool_impl.cc:460: num_alive_workers++; nit: pre-increment is prefered https://codereview.chromium.org/2501763002/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode771 ...
4 years, 1 month ago (2016-11-15 20:33:01 UTC) #18
robliao
https://codereview.chromium.org/2501763002/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc File base/task_scheduler/scheduler_worker_pool_impl.cc (right): https://codereview.chromium.org/2501763002/diff/20001/base/task_scheduler/scheduler_worker_pool_impl.cc#newcode460 base/task_scheduler/scheduler_worker_pool_impl.cc:460: num_alive_workers++; On 2016/11/15 20:33:01, gab wrote: > nit: pre-increment ...
4 years, 1 month ago (2016-11-16 21:09:31 UTC) #19
robliao
TBR danakj for signature change in base/threading/sequenced_worker_pool_unittest.cc
4 years, 1 month ago (2016-11-16 21:11:46 UTC) #25
danakj
LGTM
4 years, 1 month ago (2016-11-16 21:26:07 UTC) #26
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/2501763002/40001
4 years, 1 month ago (2016-11-16 22:35:13 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/69278)
4 years, 1 month ago (2016-11-16 23:48:16 UTC) #33
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/2501763002/40001
4 years, 1 month ago (2016-11-17 01:33:31 UTC) #35
commit-bot: I haz the power
Failed to apply patch for components/task_scheduler_util/initialization_util.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-17 04:53:37 UTC) #37
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/2501763002/60001
4 years, 1 month ago (2016-11-17 16:02:01 UTC) #43
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/2501763002/60001
4 years, 1 month ago (2016-11-17 17:28:37 UTC) #46
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-17 18:34:13 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 18:56:15 UTC) #50
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/acfa7150dd0f8a61a64ac8ae8e5d156407fb866d
Cr-Commit-Position: refs/heads/master@{#432919}

Powered by Google App Engine
This is Rietveld 408576698