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

Issue 2873733003: Introduce SingleThreadTaskRunnerThreadMode (Closed)

Created:
3 years, 7 months ago by robliao
Modified:
3 years, 7 months ago
Reviewers:
gab, fdoray
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce SingleThreadTaskRunnerThreadMode This allows callers creating SingleThreadTaskRunners to specify if the backing thread for the SingleThreadTaskRunner can be shared with other task runners or reserved for the exclusive use of the SingleThreadTaskRunner. BUG=720058 Review-Url: https://codereview.chromium.org/2873733003 Cr-Commit-Position: refs/heads/master@{#471287} Committed: https://chromium.googlesource.com/chromium/src/+/94520d71c9197a0f9b0bf4b426e4d676725828d1

Patch Set 1 #

Total comments: 3

Patch Set 2 : Create New File #

Patch Set 3 : Rebase to 8365207 #

Total comments: 2

Patch Set 4 : Add missing "base" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -14 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A base/task_scheduler/single_thread_task_runner_thread_mode.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M base/task_scheduler/task_scheduler.h View 1 3 chunks +9 lines, -2 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl_unittest.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M base/test/scoped_task_scheduler.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
robliao
Here's the design compromise to avoid churning the TaskTraits types.
3 years, 7 months ago (2017-05-09 23:17:22 UTC) #5
fdoray
https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h File base/task_scheduler/task_scheduler.h (right): https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h#newcode64 base/task_scheduler/task_scheduler.h:64: enum class SingleThreadTaskRunnerThreadMode { Declare this in a separate ...
3 years, 7 months ago (2017-05-10 12:32:24 UTC) #8
gab
lgtm w/ comment https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h File base/task_scheduler/task_scheduler.h (right): https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h#newcode64 base/task_scheduler/task_scheduler.h:64: enum class SingleThreadTaskRunnerThreadMode { On 2017/05/10 ...
3 years, 7 months ago (2017-05-10 15:20:47 UTC) #9
robliao
https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h File base/task_scheduler/task_scheduler.h (right): https://codereview.chromium.org/2873733003/diff/1/base/task_scheduler/task_scheduler.h#newcode64 base/task_scheduler/task_scheduler.h:64: enum class SingleThreadTaskRunnerThreadMode { On 2017/05/10 15:20:47, gab wrote: ...
3 years, 7 months ago (2017-05-11 05:30:12 UTC) #16
fdoray
lgtm
3 years, 7 months ago (2017-05-11 12:17:23 UTC) #20
gab
lgtm https://codereview.chromium.org/2873733003/diff/60001/base/task_scheduler/single_thread_task_runner_thread_mode.h File base/task_scheduler/single_thread_task_runner_thread_mode.h (right): https://codereview.chromium.org/2873733003/diff/60001/base/task_scheduler/single_thread_task_runner_thread_mode.h#newcode23 base/task_scheduler/single_thread_task_runner_thread_mode.h:23: } // namespace // namespace base
3 years, 7 months ago (2017-05-11 13:48:24 UTC) #21
robliao
https://codereview.chromium.org/2873733003/diff/60001/base/task_scheduler/single_thread_task_runner_thread_mode.h File base/task_scheduler/single_thread_task_runner_thread_mode.h (right): https://codereview.chromium.org/2873733003/diff/60001/base/task_scheduler/single_thread_task_runner_thread_mode.h#newcode23 base/task_scheduler/single_thread_task_runner_thread_mode.h:23: } // namespace On 2017/05/11 13:48:23, gab wrote: > ...
3 years, 7 months ago (2017-05-12 04:31:05 UTC) #22
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/2873733003/80001
3 years, 7 months ago (2017-05-12 04:31:49 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/451838)
3 years, 7 months ago (2017-05-12 06:04:32 UTC) #27
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/2873733003/80001
3 years, 7 months ago (2017-05-12 12:04:24 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 12:43:54 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/94520d71c9197a0f9b0bf4b426e4...

Powered by Google App Engine
This is Rietveld 408576698