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

Issue 2675383002: Use TaskScheduler instead of WorkerPool in tcp_socket_posix.cc. (Closed)

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

Description

Use TaskScheduler instead of WorkerPool in tcp_socket_posix.cc. 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). Note: Tasks that were previously posted to base::WorkerPool should use this shutdown behavior because this is how base::WorkerPool handles all its tasks. May Block: Tasks posted with MayBlock() 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/2675383002 Cr-Original-Commit-Position: refs/heads/master@{#449607} Committed: https://chromium.googlesource.com/chromium/src/+/937fd873bf0791a2b402a7c32a7b29749656fec8 Review-Url: https://codereview.chromium.org/2675383002 Cr-Commit-Position: refs/heads/master@{#449801} Committed: https://chromium.googlesource.com/chromium/src/+/bdbbd9b6c286d385f03b0286e2273e188c69e4b8

Patch Set 1 #

Patch Set 2 : add ScopedTaskScheduler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M chrome/browser/browser_process_impl_unittest.cc View 1 4 chunks +6 lines, -0 lines 0 comments Download
M net/socket/tcp_socket_posix.cc View 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-07 15:31:39 UTC) #10
Julia Tuttle
On 2017/02/07 15:31:39, fdoray wrote: > PTAL lgtm
3 years, 10 months ago (2017-02-09 16:01:13 UTC) #11
fdoray
jochen@: Please review changes in chrome/
3 years, 10 months ago (2017-02-09 16:05:06 UTC) #13
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-10 09:04:47 UTC) #14
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/2675383002/20001
3 years, 10 months ago (2017-02-10 12:29:34 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/937fd873bf0791a2b402a7c32a7b29749656fec8
3 years, 10 months ago (2017-02-10 13:59:19 UTC) #19
Bret
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2689813002/ by bsep@chromium.org. ...
3 years, 10 months ago (2017-02-10 21:22:49 UTC) #20
Bret
On 2017/02/10 21:22:49, Bret Sepulveda wrote: > A revert of this CL (patchset #2 id:20001) ...
3 years, 10 months ago (2017-02-11 00:07:57 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/2675383002/20001
3 years, 10 months ago (2017-02-11 00:08:31 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 00:13:41 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bdbbd9b6c286d385f03b0286e227...

Powered by Google App Engine
This is Rietveld 408576698