diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-03-14 01:02:47 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-03-14 01:02:47 +0000 |
| commit | 047a20e6448a446d5bc2a5d8a3997ee651ac541d (patch) | |
| tree | 47f8b41c69be1997134dabdf844b4a2503655a08 | |
| parent | ee5803b89b81a9989379e845cf560077986612f4 (diff) | |
Notes
| -rw-r--r-- | lib/libkse/thread/thr_rwlock.c | 2 | ||||
| -rw-r--r-- | 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 f41e8a2f6f1f0..ce9eb8a7289f9 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->blocked_writers || prwlock->state < 0) { + while (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 f41e8a2f6f1f0..ce9eb8a7289f9 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->blocked_writers || prwlock->state < 0) { + while (prwlock->state < 0) { ret = pthread_cond_wait(&prwlock->read_signal, &prwlock->lock); if (ret != 0) { |
