Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 09/21/2007 16:21:54
Module Name: src
Committed By: ad
Date: Fri Sep 21 16:21:54 UTC 2007
Modified Files:
src/lib/libpthread: pthread_rwlock2.c
Log Message:
pthread_rwlock_unlock
- Allow callers to try and release an unheld rwlock. Just return EPERM
as mandated by IEEE Std 1003.1.
- Use pthread__atomic_swap_ptr() to set in the new lock value. At this
point the lock word can't have changed.
pthread__rwlock_wrlock, pthread__rwlock_rdlock:
- Mask out the waiter bits in the lock word before checking to see if
the current thread is about to lock against itself.
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/lib/libpthread/pthread_rwlock2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.