-
Notifications
You must be signed in to change notification settings - Fork 5.5k
android: add SUPPORTS_PTHREAD_GETNAME_NP definition #12011
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
Merged
mattklein123
merged 12 commits into
envoyproxy:master
from
buildbreaker:add-supports_pthread_getname_np-definition
Jul 14, 2020
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a6998cd
add SUPPORTS_PTHREAD_GETNAME_NP definition
bb595e2
another if-def
5b6fdc6
opps didnt save
5846c22
newline
e1881fb
add spelling
6af202b
pr feedback
90082ee
better comment
af10833
add np
fe5cf72
single back ticks
5ac5ef9
more backticks
bf90d74
Merge branch 'master' of https://github.com/envoyproxy/envoy into add…
354fa04
Merge branch 'master' of https://github.com/envoyproxy/envoy into add…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -235,3 +235,17 @@ struct mmsghdr { | |
| unsigned int msg_len; | ||
| }; | ||
| #endif | ||
|
|
||
|
|
||
| #define SUPPORTS_PTHREAD_GETNAME_NP | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggest defining it to 1 or 0, rather than defining/not-defining it. That would make it less cumbersome to use in logical expressions at call-sites. I think that's more consistent with other similar definitions in this file. |
||
| #ifdef __linux__ | ||
| #undef SUPPORTS_PTHREAD_GETNAME_NP | ||
|
buildbreaker marked this conversation as resolved.
Outdated
buildbreaker marked this conversation as resolved.
Outdated
buildbreaker marked this conversation as resolved.
Outdated
|
||
| #endif | ||
|
|
||
| // https://android.googlesource.com/platform/bionic/+/master/docs/status.md | ||
| // pthread_getname_np is introduced in API 26 | ||
| #ifdef __ANDROID_API__ | ||
| #if __ANDROID_API__ < 26 | ||
| #undef SUPPORTS_PTHREAD_GETNAME_NP | ||
| #endif // __ANDROID_API__ < 26 | ||
|
buildbreaker marked this conversation as resolved.
Outdated
|
||
| #endif // ifdef __ANDROID_API__ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.