Set default type to PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, this

is the type we are using.
This commit is contained in:
David Xu 2010-10-18 23:37:56 +00:00
parent 62778483f7
commit a24bcc04b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214046

View File

@ -83,6 +83,7 @@ _pthread_rwlockattr_init(pthread_rwlockattr_t *rwlockattr)
return(ENOMEM);
prwlockattr->pshared = PTHREAD_PROCESS_PRIVATE;
prwlockattr->kind = PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP;
*rwlockattr = prwlockattr;
return(0);