mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 14:25:58 +01:00
* like sigqueue() but for threads. was added recently to FreeBSD, long before to glibc. * also include features.h in gnu/pthread.h Change-Id: I73bca666e2c67d7ff05f341bf85d71df9ccccbe5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7659 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
36 lines
558 B
C
36 lines
558 B
C
/*
|
|
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _GNU_PTHREAD_H_
|
|
#define _GNU_PTHREAD_H_
|
|
|
|
|
|
#include_next <pthread.h>
|
|
#include <features.h>
|
|
|
|
#ifdef _GNU_SOURCE
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr);
|
|
|
|
extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
|
extern int pthread_setname_np(pthread_t thread, const char* name);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _GNU_PTHREAD_H_ */
|
|
|