summaryrefslogtreecommitdiff
path: root/libthreads/rwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'libthreads/rwlock.h')
-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 }