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

Issue 2547173002: Use TaskScheduler instead of WorkerPool in debug_daemon_client.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
stevenjb, hashimoto
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in debug_daemon_client.cc. This CL replaces base::WorkerPool::PostTask() with base::PostTaskWithTraits() call. The following traits are used: Priority: Inherited (default) The priority is inherited from the calling context (i.e. TaskTraits are initialized with the priority of the current task). Shutdown behavior: CONTINUE_ON_SHUTDOWN Tasks posted with this mode which have not started executing before shutdown is initiated will never run. Tasks with this mode running at shutdown will be ignored (the worker will not be joined). May block: Tasks may block. In particular, they may wait on synchronous file I/O operations: read or write a file from disk, interact with a pipe or a socket, rename or delete a file, enumerate files in a directory, etc. Without sync primitives (default): Tasks are not allowed to wait on waitable events/condition variables or to join threads/processes. BUG=659191 Committed: https://crrev.com/40a9803a7f6df4e31b7a1b5dbae1c800036e3e14 Cr-Commit-Position: refs/heads/master@{#440132}

Patch Set 1 #

Total comments: 7

Patch Set 2 : remove task_runner_ #

Patch Set 3 : may block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M chromeos/dbus/debug_daemon_client.cc View 1 2 3 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
fdoray
Please review this CL. In particular, make sure that the traits mentioned in the CL ...
4 years ago (2016-12-07 15:51:29 UTC) #7
hashimoto
drive-by https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc#newcode58 chromeos/dbus/debug_daemon_client.cc:58: base::TaskTraits().WithFileIO().WithShutdownBehavior( This task runner is used not to ...
4 years ago (2016-12-09 10:54:37 UTC) #9
fdoray
PTAnL https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc#newcode58 chromeos/dbus/debug_daemon_client.cc:58: base::TaskTraits().WithFileIO().WithShutdownBehavior( On 2016/12/09 10:54:37, hashimoto wrote: > This ...
4 years ago (2016-12-09 16:49:14 UTC) #10
hashimoto
lgtm https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc#newcode58 chromeos/dbus/debug_daemon_client.cc:58: base::TaskTraits().WithFileIO().WithShutdownBehavior( On 2016/12/09 16:49:14, fdoray wrote: > On ...
4 years ago (2016-12-10 01:13:55 UTC) #11
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/2547173002/20001
4 years ago (2016-12-12 18:39:41 UTC) #13
fdoray
On 2016/12/10 01:13:55, hashimoto wrote: > lgtm > > https://codereview.chromium.org/2547173002/diff/1/chromeos/dbus/debug_daemon_client.cc > File chromeos/dbus/debug_daemon_client.cc (right): > ...
4 years ago (2016-12-21 16:18:48 UTC) #15
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/2547173002/40001
4 years ago (2016-12-21 16:23:22 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-21 17:05:50 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-21 17:09:11 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/40a9803a7f6df4e31b7a1b5dbae1c800036e3e14
Cr-Commit-Position: refs/heads/master@{#440132}

Powered by Google App Engine
This is Rietveld 408576698