summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-23 18:14:50 +0000
committerRoland McGrath <roland@gnu.org>1995-09-23 18:14:50 +0000
commit7d9930f014b85f1f6df270cf54dcef3f9b3350be (patch)
tree71316fab3634cc7813361817111d37b4ce9d9007
parent114065e4c9ff7b1f9500b13781c7ba2268ab0157 (diff)
(RWLOCK_INITIALIZER): New macro.
-rw-r--r--libthreads/rwlock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libthreads/rwlock.h b/libthreads/rwlock.h
index 8241dfff..28f99979 100644
--- a/libthreads/rwlock.h
+++ b/libthreads/rwlock.h
@@ -93,3 +93,6 @@ rwlock_init (struct rwlock *lock)
lock->readers_waiting = 0;
lock->writers_waiting = 0;
}
+
+#define RWLOCK_INITIALIZER \
+ { MUTEX_INITIALIZER, CONDITION_INITIALIZER, 0, 0, 0 }