aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2010-10-07 12:57:16 +0000
committerDavid Xu <davidxu@FreeBSD.org>2010-10-07 12:57:16 +0000
commit70c2e4da4412e7f1c82d452cb732923afbd9d117 (patch)
treec821883d945a1987bf1fd21221020c48640d8985 /lib
parent6ba5b27ed0a70b63c6595f81ddaab1393ff0ffdc (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c
index 82258f545c13..61b03b07a937 100644
--- a/lib/libthr/thread/thr_rtld.c
+++ b/lib/libthr/thread/thr_rtld.c
@@ -151,8 +151,8 @@ _thr_rtld_lock_release(void *lock)
state = l->lock.rw_state;
if (_thr_rwlock_unlock(&l->lock) == 0) {
- curthread->rdlock_count--;
if ((state & URWLOCK_WRITE_OWNER) == 0) {
+ curthread->rdlock_count--;
THR_CRITICAL_LEAVE(curthread);
} else {
_thr_signal_unblock(curthread);