From 7d9930f014b85f1f6df270cf54dcef3f9b3350be Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 23 Sep 1995 18:14:50 +0000 Subject: (RWLOCK_INITIALIZER): New macro. --- libthreads/rwlock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libthreads') 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 } -- cgit v1.2.3