2019-03-07 21:09:56 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
2019-08-30 18:16:02 -04:00
|
|
|
* Distributed under the terms of the MIT License.
|
2019-03-07 21:09:56 +01:00
|
|
|
*/
|
|
|
|
#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);
|
|
|
|
|
2022-10-16 00:28:48 +08:00
|
|
|
extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
|
|
|
extern int pthread_setname_np(pthread_t thread, const char* name);
|
|
|
|
|
2019-03-07 21:09:56 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _GNU_PTHREAD_H_ */
|
|
|
|
|