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

Issue 39102: Adding a new thread pool to SimpleThread. (Closed)

Created:
11 years, 9 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Added a thread pool to WorkerPool for Linux that dynamically adds threads as needed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12414

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Total comments: 41

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 31

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 10

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 8

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -19 lines) Patch
M base/base.gyp View 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 1 comment Download
M base/base.scons View 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M base/base_unittests.scons View 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A base/worker_pool_linux.h View 3 4 5 6 7 8 1 chunk +88 lines, -0 lines 0 comments Download
M base/worker_pool_linux.cc View 3 4 5 6 7 8 9 10 11 1 chunk +143 lines, -19 lines 0 comments Download
A base/worker_pool_linux_unittest.cc View 3 4 5 6 7 8 9 10 1 chunk +268 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
willchan no longer on Chromium
I didn't know if I should implement this worker pool directly in worker_pool_posix.cc or what ...
11 years, 9 months ago (2009-03-04 02:12:09 UTC) #1
willchan no longer on Chromium
I didn't know if I should implement this worker pool directly in worker_pool_posix.cc or what ...
11 years, 9 months ago (2009-03-04 02:12:24 UTC) #2
Dean McNamee
Hey Will, I didn't do a very good job at reviewing this, but here is ...
11 years, 9 months ago (2009-03-04 16:18:15 UTC) #3
Dean McNamee
Either I or Rietveld was being completely retarded, and I missed the unit test changes. ...
11 years, 9 months ago (2009-03-04 16:19:48 UTC) #4
willchan no longer on Chromium
On 2009/03/04 16:18:15, Dean McNamee wrote: > Hey Will, > > I didn't do a ...
11 years, 9 months ago (2009-03-04 17:05:50 UTC) #5
Dean McNamee
On 2009/03/04 17:05:50, willchan wrote: > On 2009/03/04 16:18:15, Dean McNamee wrote: > > Hey ...
11 years, 9 months ago (2009-03-04 17:24:38 UTC) #6
Dean McNamee
On 2009/03/04 17:05:50, willchan wrote: > On 2009/03/04 16:18:15, Dean McNamee wrote: > > Hey ...
11 years, 9 months ago (2009-03-04 17:25:05 UTC) #7
willchan no longer on Chromium
Since we switched to using non-joinable threads and moved the implementation into worker_pool_linux.cc, things changed ...
11 years, 9 months ago (2009-03-10 00:24:12 UTC) #8
Dean McNamee
This is a super good start. A bunch of small nits around the code, and ...
11 years, 9 months ago (2009-03-10 11:30:37 UTC) #9
Dean McNamee
Blah, Rietveld didn't send my inline comments, trying again. http://codereview.chromium.org/39102/diff/1010/2002 File base/worker_pool_linux.cc (right): http://codereview.chromium.org/39102/diff/1010/2002#newcode15 Line ...
11 years, 9 months ago (2009-03-10 11:32:14 UTC) #10
willchan no longer on Chromium
http://codereview.chromium.org/39102/diff/1010/2002 File base/worker_pool_linux.cc (right): http://codereview.chromium.org/39102/diff/1010/2002#newcode15 Line 15: const int kIdleSecondsBeforeExit = 60; On 2009/03/10 11:32:14, ...
11 years, 9 months ago (2009-03-10 20:17:19 UTC) #11
Dean McNamee
This looks super good. The sleeps in the unittest scared me, we run unittests under ...
11 years, 9 months ago (2009-03-11 11:17:26 UTC) #12
willchan no longer on Chromium
Thanks for the careful review. I totally agree with your comment about the sleeps. In ...
11 years, 9 months ago (2009-03-12 08:52:24 UTC) #13
Dean McNamee
This looks great to me, I would swing it by Darin and make sure I ...
11 years, 9 months ago (2009-03-12 11:04:17 UTC) #14
willchan no longer on Chromium
[ +darin ] http://codereview.chromium.org/39102/diff/4020/4022 File base/worker_pool_linux.cc (right): http://codereview.chromium.org/39102/diff/4020/4022#newcode4 Line 4: // On 2009/03/12 11:04:17, Dean ...
11 years, 9 months ago (2009-03-12 18:53:44 UTC) #15
willchan no longer on Chromium
I updated this changelist because I found out that it caused net_unittests to break since ...
11 years, 9 months ago (2009-03-16 21:01:33 UTC) #16
darin (slow to review)
LGTM! just some minor style nits: http://codereview.chromium.org/39102/diff/5001/4030 File base/worker_pool_linux.cc (right): http://codereview.chromium.org/39102/diff/5001/4030#newcode74 Line 74: if (!task) ...
11 years, 9 months ago (2009-03-24 17:50:44 UTC) #17
willchan no longer on Chromium
Thanks for the comments. I've addressed them all and searched through the code to make ...
11 years, 9 months ago (2009-03-24 19:28:19 UTC) #18
darin (slow to review)
LGTM
11 years, 9 months ago (2009-03-24 19:53:31 UTC) #19
Nico
10 years ago (2010-12-18 08:50:38 UTC) #20
http://codereview.chromium.org/39102/diff/6003/base/base.gyp
File base/base.gyp (right):

http://codereview.chromium.org/39102/diff/6003/base/base.gyp#newcode571
base/base.gyp:571: 'worker_pool_linux_unittest.cc',
did you intentionally add this to the "sources!" section? (i.e. the list of
sources to exclude on linux)

I have a CL out that adds this to the real sources list – miraculously the file
still compiles and all tests still pass.

Please let me know if this was in fact intentional.

Powered by Google App Engine
This is Rietveld 408576698