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

Issue 4894055: Use gcc intrinsic atomic operations for incr and decr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by bsalomon
Modified:
12 years, 10 months ago
Reviewers:
caryclark1
CC:
reed1, skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : conditionalize using intrinsics #

Patch Set 3 : remove extra whitespace #

Total comments: 1

Patch Set 4 : Don't test values of possibly undefined macros #

Patch Set 5 : more macro fixes! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M src/ports/SkThread_pthread.cpp View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 6
bsalomon
There is a problem with the current implementation of the atomic incr and decr functions. ...
12 years, 10 months ago (2011-08-18 18:27:38 UTC) #1
bsalomon
Updated to only use the intrinsics on GCC 4.1+ on intel arch.
12 years, 10 months ago (2011-08-18 19:31:52 UTC) #2
caryclark1
http://codereview.appspot.com/4894055/diff/5001/src/ports/SkThread_pthread.cpp File src/ports/SkThread_pthread.cpp (right): http://codereview.appspot.com/4894055/diff/5001/src/ports/SkThread_pthread.cpp#newcode24 src/ports/SkThread_pthread.cpp:24: #if GCC_SYNC_INTRINSIC Huh. I'm not sure this works, but ...
12 years, 10 months ago (2011-08-18 19:49:28 UTC) #3
bsalomon
I'm no expert on that either. I did test it in visual studio. It treats ...
12 years, 10 months ago (2011-08-18 20:02:36 UTC) #4
caryclark1
LTGM
12 years, 10 months ago (2011-08-18 20:10:05 UTC) #5
bsalomon
12 years, 10 months ago (2011-08-18 20:37:30 UTC) #6
Closed with r2138.
Sign in to reply to this message.

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