Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19039)

Issue 6777064: Add SkThreadPool for managing threads. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by Leon
Modified:
11 years, 6 months ago
Reviewers:
mtklein
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add SkThreadPool for managing threads. Skia-ized from https://codereview.appspot.com/6755043/ TODO: Use SkThread and platform independent features. Committed: https://code.google.com/p/skia/source/detail?r=6217

Patch Set 1 #

Total comments: 36

Patch Set 2 : Respond to comments #

Total comments: 2

Patch Set 3 : More fixes. Also use an SkTDLinkedList for the queue. #

Total comments: 8

Patch Set 4 : Lock for broadcast and keep SkRunnable interface simple. #

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -3 lines) Patch
M gyp/utils.gyp View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
A include/utils/SkCondVar.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A include/utils/SkCountdown.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A + include/utils/SkRunnable.h View 1 3 1 chunk +7 lines, -3 lines 0 comments Download
A include/utils/SkThreadPool.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A src/utils/SkCondVar.cpp View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A src/utils/SkCountdown.cpp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A src/utils/SkThreadPool.cpp View 1 2 3 4 1 chunk +88 lines, -0 lines 1 comment Download

Messages

Total messages: 10
Leon
Here's a patch that moves your code into skia. It's mostly just renaming with some ...
11 years, 6 months ago (2012-10-26 19:46:57 UTC) #1
mtklein
Generally looks great. I have a zillion little questions. I'm not sure I'm one to ...
11 years, 6 months ago (2012-10-28 20:30:32 UTC) #2
Leon
I've uploaded a new patchset with some changes. I still need to switch to an ...
11 years, 6 months ago (2012-10-29 18:27:31 UTC) #3
mtklein
LGTM Cool, this LGTM in the sense that it appears it won't blow anything up ...
11 years, 6 months ago (2012-10-29 19:11:09 UTC) #4
Leon
New patch, with SkTDLinkedList for the queue. It doesn't allow me to add a NULL ...
11 years, 6 months ago (2012-10-29 22:09:49 UTC) #5
mtklein
Cool cool. I've got no opinion on whether to use NULL or fDone to kill ...
11 years, 6 months ago (2012-10-29 22:46:08 UTC) #6
Leon
After I left yesterday I realized that my desire to implement the Windows version conflicted ...
11 years, 6 months ago (2012-10-30 15:28:53 UTC) #7
mtklein
Just keep in mind that condition variables only exist since Vista, so we may need ...
11 years, 6 months ago (2012-10-30 20:39:06 UTC) #8
Leon
On 2012/10/30 20:39:06, mtklein wrote: > Just keep in mind that condition variables only exist ...
11 years, 6 months ago (2012-10-31 15:38:12 UTC) #9
mtklein
11 years, 6 months ago (2012-10-31 17:33:23 UTC) #10
LGTM

https://codereview.appspot.com/6777064/diff/17002/src/utils/SkThreadPool.cpp
File src/utils/SkThreadPool.cpp (right):

https://codereview.appspot.com/6777064/diff/17002/src/utils/SkThreadPool.cpp#...
src/utils/SkThreadPool.cpp:9: #include "SkRunnable.h"
R before T?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b