mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Backout last commit.
Requested by: jhb
This commit is contained in:
parent
4832865490
commit
5b54b0891a
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue