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

Issue 9065009: Hook up the SequencedWorkerPool to the browser thread. (Closed)

Created:
8 years, 11 months ago by brettw
Modified:
8 years, 11 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Hook up the SequencedWorkerPool to the browser thread. This does some refactoring of the static data in the browser thread so we only have one global object instead of a bunch fo separate arrays. It also hooks up the visited link master's I/O to use this new system as a proof of concept. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116816

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -78 lines) Patch
M base/threading/sequenced_worker_pool.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 1 2 3 4 5 5 chunks +47 lines, -15 lines 0 comments Download
M chrome/browser/crash_upload_list.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/visitedlink/visitedlink_master.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/visitedlink/visitedlink_master.cc View 1 2 3 5 chunks +10 lines, -12 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/browser_thread_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 1 2 3 16 chunks +103 lines, -48 lines 0 comments Download
M content/public/browser/browser_thread.h View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
brettw
8 years, 11 months ago (2012-01-02 18:55:36 UTC) #1
jam
http://codereview.chromium.org/9065009/diff/10/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): http://codereview.chromium.org/9065009/diff/10/content/public/browser/browser_thread.h#newcode164 content/public/browser/browser_thread.h:164: static base::SequencedWorkerPool* GetBlockingPool(); does this getter really belong on ...
8 years, 11 months ago (2012-01-03 19:48:17 UTC) #2
brettw
Do you have an idea about where this would go better? On the g_browser_process?
8 years, 11 months ago (2012-01-03 20:09:23 UTC) #3
jam
On 2012/01/03 20:09:23, brettw wrote: > Do you have an idea about where this would ...
8 years, 11 months ago (2012-01-03 21:01:09 UTC) #4
brettw
Yeah, it just seems to me that BrowserThread is where people look for when they ...
8 years, 11 months ago (2012-01-03 21:14:09 UTC) #5
jam
On 2012/01/03 21:14:09, brettw wrote: > Yeah, it just seems to me that BrowserThread is ...
8 years, 11 months ago (2012-01-03 21:30:12 UTC) #6
brettw
You can always get a token synchronously or ask for a named one every time. ...
8 years, 11 months ago (2012-01-03 21:36:19 UTC) #7
jam
On 2012/01/03 21:36:19, brettw wrote: > You can always get a token synchronously or ask ...
8 years, 11 months ago (2012-01-03 22:37:05 UTC) #8
brettw
New snap up with no lazy initialization. Turns out it requires no locking to generate ...
8 years, 11 months ago (2012-01-04 03:56:17 UTC) #9
brettw
This version adds some helper functions as discussed in person. I used them in one ...
8 years, 11 months ago (2012-01-05 05:22:47 UTC) #10
jam
8 years, 11 months ago (2012-01-05 18:11:32 UTC) #11
lgtm

On 2012/01/05 05:22:47, brettw wrote:
> This version adds some helper functions as discussed in person. I used them in
> one simple place.
> 
> Interesting question (which I would prefer to address in a followup): how can
we
> assert that you're on the worker pool? Lots of people DCHECK that they're on
the
> file thread. Maybe set some kind of TLS flag at the start of each worker that
we
> can check?

TLS sounds good. an alternative is that the DCHECK can call a method on the
worker pool code to check if the current ML is in its list of threads.

Powered by Google App Engine
This is Rietveld 408576698