diff options
| author | ad <ad@NetBSD.org> | 2007-09-21 16:21:54 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-09-21 16:21:54 +0000 |
| commit | 9212747aea6dbacb90f49d933f887c0606e744c6 (patch) | |
| tree | 38ec5fcb478c943d75858911ada830f6ed52505b /sys/dev/raidframe | |
| parent | 2d6848b0e4430bbc35998817ce96833668cb0c29 (diff) | |
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.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions
