ba56d0a513
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>
33 lines
393 B
C
33 lines
393 B
C
/*
|
|
* 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_ */
|
|
|