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

Issue 2675273002: Use TaskScheduler instead of WorkerPool in trace_log.cc. (Closed)

Created:
3 years, 10 months ago by fdoray
Modified:
3 years, 10 months ago
Reviewers:
dsinclair
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in trace_log.cc. The following traits are used to post a task to TaskScheduler: .WithPriority(TaskPriority::BACKGROUND) User won't notice if this task takes an arbitrarily long time to complete. .WithShutdownBehavior(TaskShutdownBehavior::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). Note: Tasks that were previously posted to base::WorkerPool should use this shutdown behavior because this is how base::WorkerPool handles all its tasks. .MayBlock() Tasks with this trait may block. This includes but is not limited to tasks that 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. This trait isn't required for the mere use of locks. BUG=659191 Review-Url: https://codereview.chromium.org/2675273002 Cr-Commit-Position: refs/heads/master@{#448248} Committed: https://chromium.googlesource.com/chromium/src/+/cdab762270b332aeb4c38f31d2a97720665fdf1d

Patch Set 1 #

Patch Set 2 : CONTINUE_ON_SHUTDOWN #

Patch Set 3 : include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M base/trace_event/trace_log.cc View 1 2 2 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-06 13:31:13 UTC) #8
dsinclair
lgtm
3 years, 10 months ago (2017-02-06 14:23:40 UTC) #9
Primiano Tucci (use gerrit)
> User won't notice if this task takes an arbitrarily long time to complete. This ...
3 years, 10 months ago (2017-02-06 14:55:34 UTC) #10
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/2675273002/40001
3 years, 10 months ago (2017-02-06 14:55:46 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 15:00:08 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/cdab762270b332aeb4c38f31d2a9...

Powered by Google App Engine
This is Rietveld 408576698