Backout last commit.

Requested by: jhb
This commit is contained in:
David Xu 2003-03-15 04:45:42 +00:00
parent 4832865490
commit 5b54b0891a
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {