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

Issue 4951054: Thread safety: Adding in simplified support for trylock functions

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by supertri
Modified:
12 years, 7 months ago
Reviewers:
chandlerc
Visibility:
Public.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M include/clang/Basic/Attr.td View 1 chunk +2 lines, -2 lines 2 comments Download
M lib/Sema/AnalysisBasedWarnings.cpp View 1 chunk +22 lines, -0 lines 2 comments Download
M lib/Sema/SemaDeclAttr.cpp View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 2
chandlerc
This seems like it may be too simplified. What does it actually do? I find ...
12 years, 8 months ago (2011-09-02 06:36:48 UTC) #1
supertri
12 years, 7 months ago (2011-09-02 22:24:20 UTC) #2
Destaging for now and committing later with the implementation for trylocks.

http://codereview.appspot.com/4951054/diff/1/include/clang/Basic/Attr.td
File include/clang/Basic/Attr.td (right):

http://codereview.appspot.com/4951054/diff/1/include/clang/Basic/Attr.td#newc...
include/clang/Basic/Attr.td:598: let Args = [ExprArgument<"SuccVal">,
VariadicExprArgument<"Args">];
On 2011/09/02 06:36:48, chandlerc wrote:
> 'SuccVal' doesn't convey any meaning to me... What is this actually doing?

Changed to "SuccessValue". From
http://clang.llvm.org/docs/LanguageExtensions.html: "The first argument is an
integer or boolean value specifying the return value of a successful lock
acquisition." Also added as comment here.
Sign in to reply to this message.

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