summaryrefslogtreecommitdiff
path: root/include/pthread/pthread.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-05-17 20:07:56 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-05-17 20:07:56 +0000
commit7c6708ed26c318abbf7ca8bacc2eea50c9dcb459 (patch)
treec5cb2ecc436a64c9082827ffb14b2be195f0a9a4 /include/pthread/pthread.h
parentbff1b2efeae74afed68b5521d46395b0e29681e3 (diff)
2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
* include/pthread/pthread.h (pthread_getattr_np): New declaration. * pthread/pt-getattr.c: New file. * Makefile (SRCS): Add pt-getattr.c.
Diffstat (limited to 'include/pthread/pthread.h')
-rw-r--r--include/pthread/pthread.h7
1 files changed, 7 insertions, 0 deletions
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