From 7c6708ed26c318abbf7ca8bacc2eea50c9dcb459 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 17 May 2008 20:07:56 +0000 Subject: 2008-05-17 Samuel Thibault * include/pthread/pthread.h (pthread_getattr_np): New declaration. * pthread/pt-getattr.c: New file. * Makefile (SRCS): Add pt-getattr.c. --- include/pthread/pthread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/pthread/pthread.h') diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index 9773e68..88fa1dc 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -188,6 +188,13 @@ extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict attr, /* Set the value of the stacksize attribute in *ATTR to STACKSIZE. */ extern int pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize); + +#ifdef __USE_GNU +/* Initialize thread attribute *ATTR with attributes corresponding to the + already running thread THREAD. It shall be called on an uninitialized ATTR + and destroyed with pthread_attr_destroy when no longer needed. */ +extern int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr); +#endif /* Create a thread with attributes given by ATTR, executing -- cgit v1.2.3