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

Issue 2531673002: Use TaskScheduler instead of WorkerPool in thumbnail_cache.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in thumbnail_cache.cc. This CL replaces base::WorkerPool::PostTask() with base::PostTaskWithTraits(). The following traits are used: Priority: BACKGROUND User won't notice if this task takes an arbitrarily long time to complete. 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). No File IO (default): The task does not perform synchronous IO operations. No Wait (default): The task does not wait on things other than synchronous file IO operations (e.g. WaitableEvent, ConditionVariable, join a thread, join a process, blocking system call that doesn't involve interactions with the file system). BUG=659191 Committed: https://crrev.com/abd126d64704dc5e65e562d3337c311638b0439d Cr-Commit-Position: refs/heads/master@{#435346}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : CONTINUE_ON_SHUTDOWN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 1 2 3 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
fdoray
PTAL
4 years ago (2016-11-25 15:45:53 UTC) #7
gab
lgtm
4 years ago (2016-11-28 16:26:57 UTC) #9
gab
On 2016/11/28 16:26:57, gab wrote: > lgtm Actually all WorkerPool threads had CONTINUE_ON_SHUTDOWN semantics before, ...
4 years ago (2016-11-28 16:37:53 UTC) #10
fdoray
dtrainor@: Please review this CL. You should verify that the traits mentioned in the CL ...
4 years ago (2016-11-29 20:24:08 UTC) #17
David Trainor- moved to gerrit
lgtm thanks!
4 years ago (2016-11-30 17:45:03 UTC) #18
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/2531673002/40001
4 years ago (2016-11-30 17:46:32 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-30 18:28:57 UTC) #24
commit-bot: I haz the power
4 years ago (2016-11-30 18:31:15 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/abd126d64704dc5e65e562d3337c311638b0439d
Cr-Commit-Position: refs/heads/master@{#435346}

Powered by Google App Engine
This is Rietveld 408576698