summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-12-21 18:41:27 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-08 00:04:18 +0200
commitf5440f822c029ab8e8f82d9c43b4df0e73b34e82 (patch)
tree835966a44b5d801bb617aa3bedfa5243e34aef10
parentffa09f92862c40b890d48af9261de24e07490b0b (diff)
2008-12-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
* include/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): New macro.
-rw-r--r--ChangeLog5
-rw-r--r--include/pthread/pthread.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 083c211..faf5ec1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
2008-12-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
- * sysdeps/mach/pt-timedblock.c (__pthread_timedblock):
- Fix timeout computation from abstime and now.
+ * sysdeps/mach/pt-timedblock.c (__pthread_timedblock): Fix timeout
+ computation from abstime and now.
+ * include/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): New macro.
2008-10-02 Neal H. Walfield <neal@gnu.org>
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h
index f7e4aae..c821d57 100644
--- a/include/pthread/pthread.h
+++ b/include/pthread/pthread.h
@@ -521,6 +521,7 @@ extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr,
#include <bits/rwlock.h>
+#define PTHREAD_RWLOCK_INITIALIZER __PTHREAD_RWLOCK_INITIALIZER
/* Create a rwlock object with attributes given by ATTR and strore the
result in *RWLOCK. */
extern int pthread_rwlock_init (pthread_rwlock_t *__restrict rwlock,