Backout last commit.

Requested by: jhb
This commit is contained in:
davidxu 2003-03-15 04:45:42 +00:00
parent 349ca981e1
commit 71e2d62a49
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) {