Add PTHREAD_RWLOCK_INITIALIZER
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 1 Oct 2015 02:50:17 +0000 (19:50 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Oct 2015 14:20:55 +0000 (10:20 -0400)
commit76b6cb08745021fb697b5d6a42f5db0fc4259ac5
treeaf78143755f68ca0390f079e0458dc7da15a2865
parent0a072c11e67a3340270844f1a1951d9177fe576c
Add PTHREAD_RWLOCK_INITIALIZER

We currently just implement our rwlocks using a standard pthread_mutex.
For these locks to be usable, we also need to have an INITIALIZER that
matches the normal PTHREAD_MUTEX_INITIALIZER.  We should revisit this
soon and provide true rwlocks.
user/pthread/pthread.h