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

Issue 6399050: Add a skia method to perform an atomic add. (Closed)

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

Description

Add a skia method to perform an atomic add. Complements sk_atomic_inc for when you want to increase by more than one. This time, use the correct atomic add function on Windows.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use consistent names. Fix comments. #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -3 lines) Patch
M gyp/tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkThread.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkThread_platform.h View 1 3 chunks +15 lines, -2 lines 0 comments Download
M src/ports/SkThread_none.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkThread_pthread.cpp View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M src/ports/SkThread_win.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
A tests/AtomicTest.cpp View 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Leon
11 years, 11 months ago (2012-07-16 14:33:12 UTC) #1
bungeman
Mostly naming, using 'inc' instead of 'value' consistently. https://codereview.appspot.com/6399050/diff/1/include/core/SkThread_platform.h File include/core/SkThread_platform.h (right): https://codereview.appspot.com/6399050/diff/1/include/core/SkThread_platform.h#newcode62 include/core/SkThread_platform.h:62: #define ...
11 years, 11 months ago (2012-07-16 14:56:57 UTC) #2
Leon
https://codereview.appspot.com/6399050/diff/1/include/core/SkThread_platform.h File include/core/SkThread_platform.h (right): https://codereview.appspot.com/6399050/diff/1/include/core/SkThread_platform.h#newcode62 include/core/SkThread_platform.h:62: #define sk_atomic_add(addr, value) android_atomic_add(value, addr) On 2012/07/16 14:56:58, bungeman ...
11 years, 11 months ago (2012-07-16 15:07:54 UTC) #3
bungeman
LGTM with one last nit. https://codereview.appspot.com/6399050/diff/2002/src/ports/SkThread_pthread.cpp File src/ports/SkThread_pthread.cpp (right): https://codereview.appspot.com/6399050/diff/2002/src/ports/SkThread_pthread.cpp#newcode38 src/ports/SkThread_pthread.cpp:38: int32_t sk_atomic_add(int32_t* addr, int32_t ...
11 years, 11 months ago (2012-07-16 15:23:38 UTC) #4
Leon
https://codereview.appspot.com/6399050/diff/2002/src/ports/SkThread_pthread.cpp File src/ports/SkThread_pthread.cpp (right): https://codereview.appspot.com/6399050/diff/2002/src/ports/SkThread_pthread.cpp#newcode38 src/ports/SkThread_pthread.cpp:38: int32_t sk_atomic_add(int32_t* addr, int32_t value) On 2012/07/16 15:23:39, bungeman ...
11 years, 11 months ago (2012-07-16 15:33:11 UTC) #5
Leon
11 years, 11 months ago (2012-07-16 16:54:31 UTC) #6

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