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

Issue 1701343003: TaskScheduler [13] TaskSchedulerImpl (Closed)

Created:
4 years, 10 months ago by fdoray
Modified:
4 years, 7 months ago
Reviewers:
robliao, danakj, gab
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@s_6_threadpool
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskScheduler [13] TaskSchedulerImpl TaskSchedulerImpl is the default implementation of the TaskScheduler interface. It runs tasks in 4 thread pools: - Background with file i/o - Background without file i/o - Normal with file i/o - Normal without file i/o This change completes the necessary changes described in https://codereview.chromium.org/1698183005/ BUG=553459 Committed: https://crrev.com/4151ceaeb5627ddb2fd8c236c8fe055355c4c9a0 Cr-Commit-Position: refs/heads/master@{#392063}

Patch Set 1 #

Patch Set 2 : initial patch for review #

Total comments: 34

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : CR gab #11 #

Total comments: 1

Patch Set 7 : self review #

Total comments: 14

Patch Set 8 : rebase #

Patch Set 9 : rebase (includes implementation of PostTaskWithTraits) #

Patch Set 10 : CR gab #13 #

Total comments: 2

Patch Set 11 : rebase + add SequenceSortKey::priority() #

Total comments: 6

Patch Set 12 : CR robliao #

Total comments: 3

Patch Set 13 : auto -> std::unique_ptr<TaskSchedulerImpl> #

Total comments: 6

Patch Set 14 : rebase + CR danakj/gab #

Patch Set 15 : fix linux build error #

Patch Set 16 : fix ios build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -1 line) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/task_scheduler/sequence_sort_key.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M base/task_scheduler/task_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
A base/task_scheduler/task_scheduler_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +89 lines, -0 lines 0 comments Download
A base/task_scheduler/task_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +142 lines, -0 lines 0 comments Download
A base/task_scheduler/task_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +208 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (18 generated)
fdoray
Can you review this CL? Thanks.
4 years, 10 months ago (2016-02-17 20:23:56 UTC) #3
gab
On 2016/02/17 20:23:56, fdoray wrote: > Can you review this CL? Thanks. I assume this ...
4 years, 8 months ago (2016-04-12 13:39:11 UTC) #5
fdoray
gab@/robliao@: Can you review this CL? Thanks.
4 years, 7 months ago (2016-04-27 12:22:59 UTC) #10
gab
Woot, getting there :-)! Looks great, few comments: https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc File base/task_scheduler/scheduler_thread_pool_impl_unittest.cc (right): https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc#newcode223 base/task_scheduler/scheduler_thread_pool_impl_unittest.cc:223: // ...
4 years, 7 months ago (2016-04-27 19:15:29 UTC) #11
fdoray
gab@: Done. Can you take another look? robliao@: Can you review this CL? Thanks! https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/scheduler_thread_pool_impl_unittest.cc ...
4 years, 7 months ago (2016-04-28 18:36:32 UTC) #12
gab
lvg https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode107 base/task_scheduler/task_scheduler_impl_unittest.cc:107: ::testing::ValuesIn(GetTaskSchedulerImplTestParams())); On 2016/04/28 18:36:32, fdoray wrote: > On ...
4 years, 7 months ago (2016-04-28 19:29:03 UTC) #13
fdoray
gab@: Done. Can you take another look? robliao@: Can you review this CL? Thanks. https://codereview.chromium.org/1701343003/diff/120001/base/task_scheduler/task_scheduler_impl.cc ...
4 years, 7 months ago (2016-04-28 21:02:24 UTC) #14
gab
lgtm, thanks! https://codereview.chromium.org/1701343003/diff/180001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/180001/base/task_scheduler/task_scheduler_impl.cc#newcode36 base/task_scheduler/task_scheduler_impl.cc:36: "behavior of DLOG_ASSERT, have diverged."); Why does ...
4 years, 7 months ago (2016-04-28 22:44:59 UTC) #15
fdoray
robliao@: Can you review this CL? Thanks. https://codereview.chromium.org/1701343003/diff/180001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/180001/base/task_scheduler/task_scheduler_impl.cc#newcode36 base/task_scheduler/task_scheduler_impl.cc:36: "behavior of ...
4 years, 7 months ago (2016-04-29 13:19:49 UTC) #16
fdoray
robliao@: Can you review this CL? Thanks. In patch set 11, I added SequenceSortKey::priority() because ...
4 years, 7 months ago (2016-04-29 13:44:38 UTC) #17
robliao
lgtm % constructor https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl.cc#newcode22 base/task_scheduler/task_scheduler_impl.cc:22: std::unique_ptr<TaskSchedulerImpl> TaskSchedulerImpl::Create() { On 2016/04/28 18:36:32, ...
4 years, 7 months ago (2016-04-29 18:34:22 UTC) #18
fdoray
robliao@: 2 done, 1 pending discussion danakj: Can you review this CL? Thanks! https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl.cc File ...
4 years, 7 months ago (2016-04-29 19:42:43 UTC) #20
robliao
https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode184 base/task_scheduler/task_scheduler_impl_unittest.cc:184: auto scheduler = TaskSchedulerImpl::Create(); I don't know how I ...
4 years, 7 months ago (2016-04-29 19:56:03 UTC) #21
fdoray
danakj@: Can you review this CL? Thanks. https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode184 base/task_scheduler/task_scheduler_impl_unittest.cc:184: auto scheduler ...
4 years, 7 months ago (2016-04-29 20:26:20 UTC) #22
gab
https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/20001/base/task_scheduler/task_scheduler_impl.cc#newcode22 base/task_scheduler/task_scheduler_impl.cc:22: std::unique_ptr<TaskSchedulerImpl> TaskSchedulerImpl::Create() { On 2016/04/29 19:42:42, fdoray wrote: > ...
4 years, 7 months ago (2016-04-29 20:33:18 UTC) #23
gab
https://codereview.chromium.org/1701343003/diff/240001/base/task_scheduler/task_scheduler.cc File base/task_scheduler/task_scheduler.cc (right): https://codereview.chromium.org/1701343003/diff/240001/base/task_scheduler/task_scheduler.cc#newcode8 base/task_scheduler/task_scheduler.cc:8: #include "base/memory/ptr_util.h" unused
4 years, 7 months ago (2016-04-29 20:40:11 UTC) #24
robliao
https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc File base/task_scheduler/task_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1701343003/diff/220001/base/task_scheduler/task_scheduler_impl_unittest.cc#newcode184 base/task_scheduler/task_scheduler_impl_unittest.cc:184: auto scheduler = TaskSchedulerImpl::Create(); On 2016/04/29 20:26:20, fdoray wrote: ...
4 years, 7 months ago (2016-04-29 20:45:07 UTC) #25
fdoray
danakj@: Can you review this CL? Thanks.
4 years, 7 months ago (2016-05-02 19:03:48 UTC) #26
danakj
LGTM https://codereview.chromium.org/1701343003/diff/240001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/240001/base/task_scheduler/task_scheduler_impl.cc#newcode29 base/task_scheduler/task_scheduler_impl.cc:29: static_assert(DCHECK_IS_ON() == ::logging::DEBUG_MODE, This is not simpler than ...
4 years, 7 months ago (2016-05-06 02:00:48 UTC) #27
fdoray
https://codereview.chromium.org/1701343003/diff/200001/base/task_scheduler/task_scheduler_impl.cc File base/task_scheduler/task_scheduler_impl.cc (right): https://codereview.chromium.org/1701343003/diff/200001/base/task_scheduler/task_scheduler_impl.cc#newcode87 base/task_scheduler/task_scheduler_impl.cc:87: ThreadPriority::BACKGROUND, 1U, IORestriction::DISALLOWED, On 2016/04/29 20:33:18, gab wrote: > ...
4 years, 7 months ago (2016-05-06 12:47:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701343003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701343003/250001
4 years, 7 months ago (2016-05-06 12:47:59 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/156392)
4 years, 7 months ago (2016-05-06 13:01:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701343003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701343003/270001
4 years, 7 months ago (2016-05-06 13:52:12 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/1677)
4 years, 7 months ago (2016-05-06 14:21:17 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701343003/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701343003/290001
4 years, 7 months ago (2016-05-06 14:41:30 UTC) #41
commit-bot: I haz the power
Committed patchset #16 (id:290001)
4 years, 7 months ago (2016-05-06 15:39:30 UTC) #43
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 15:41:58 UTC) #45
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/4151ceaeb5627ddb2fd8c236c8fe055355c4c9a0
Cr-Commit-Position: refs/heads/master@{#392063}

Powered by Google App Engine
This is Rietveld 408576698