-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add thread annotation macros #2
Add thread annotation macros #2
Conversation
5d47939
to
42f6d28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mainly LGTM, we should probably have a no-op test which is just including the header so that we can detect compilation errors in this package w/o having to pull that in a dependency and discover there that it actually does not work.
cc02ae9
to
720c5be
Compare
Awesome - SGTM! I think it's good we don't force everyone to compile with |
8819e9f
to
87820aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little bit more documentation would be great. And it looks like we're only at ~25% coverage of the macros in the test. It would be good to try to increase that at least a little bit as I think getting to at least the majority of them would be relatively straight forward.
I'll make a go at hitting all the macros in unit test. The first pass was mainly to make sure that including the header doesn't break the build |
e37de87
to
888493c
Compare
Updated the documentation, and updated tests to cover as many of the macros as possible, and left detailed analysis/documentation of the ones that could not be tested. |
31b92f8
to
7f507db
Compare
Any feedback on latest revision? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest commit should fix CI issues - was able to reproduce locally by doing clang w/ libstdc++ - I had been only build gcc and clang+libcxx on the latest versions |
@tfoote with the build fix, are we ok to merge this? |
All commits have to be signed-off, the DCO check is currently failing. |
093685a
to
0840c25
Compare
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
…LYSIS, and fix argument count of ASSERT_CAPABILITY macros Signed-off-by: Emerson Knapp <[email protected]>
0840c25
to
d3c1c8a
Compare
For clang thread safety analysis https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
Related to ros2/ros2#664