From 71e2d62a49b558881aa09378c949a5848c20448e Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 15 Mar 2003 04:45:42 +0000 Subject: [PATCH] Backout last commit. Requested by: jhb --- lib/libkse/thread/thr_rwlock.c | 2 +- lib/libpthread/thread/thr_rwlock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libkse/thread/thr_rwlock.c b/lib/libkse/thread/thr_rwlock.c index ce9eb8a7289f..f41e8a2f6f1f 100644 --- a/lib/libkse/thread/thr_rwlock.c +++ b/lib/libkse/thread/thr_rwlock.c @@ -157,7 +157,7 @@ _pthread_rwlock_rdlock (pthread_rwlock_t *rwlock) return(ret); /* give writers priority over readers */ - while (prwlock->state < 0) { + while (prwlock->blocked_writers || prwlock->state < 0) { ret = pthread_cond_wait(&prwlock->read_signal, &prwlock->lock); if (ret != 0) { diff --git a/lib/libpthread/thread/thr_rwlock.c b/lib/libpthread/thread/thr_rwlock.c index ce9eb8a7289f..f41e8a2f6f1f 100644 --- a/lib/libpthread/thread/thr_rwlock.c +++ b/lib/libpthread/thread/thr_rwlock.c @@ -157,7 +157,7 @@ _pthread_rwlock_rdlock (pthread_rwlock_t *rwlock) return(ret); /* give writers priority over readers */ - while (prwlock->state < 0) { + while (prwlock->blocked_writers || prwlock->state < 0) { ret = pthread_cond_wait(&prwlock->read_signal, &prwlock->lock); if (ret != 0) {