Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
pthread: add pthread_getattr_np.
non standard extension, but widely available to obtain attributes for a thread. also provides an alias for pthread_getattr_np which is the bsd equivalent. Change-Id: I26ef8245ed2537186f48c8b8bdf3e42b03e70892 Reviewed-on: https://review.haiku-os.org/c/1172 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
- Loading branch information
1 parent
901c3d4
commit ba56d0a
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* | ||
| * Copyright 2019 Haiku, Inc. All Rights Reserved. | ||
| * Distributed under the terms of the Haiku License. | ||
| */ | ||
| #ifndef _GNU_PTHREAD_H_ | ||
| #define _GNU_PTHREAD_H_ | ||
|
|
||
|
|
||
| #include_next <pthread.h> | ||
|
|
||
|
|
||
| #ifdef _GNU_SOURCE | ||
|
|
||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
|
|
||
| extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr); | ||
|
|
||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
|
|
||
|
|
||
| #endif | ||
|
|
||
|
|
||
| #endif /* _GNU_PTHREAD_H_ */ | ||
|
|
This file contains 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