Avoid pthread_rwlock_wrlock() starvation

This commit is contained in:
Justine Tunney 2024-12-24 10:30:11 -08:00
parent 55b7aa1632
commit ec2db4e40e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 6 additions and 0 deletions

View file

@ -111,6 +111,7 @@ typedef struct pthread_rwlock_s {
char _pshared;
char _iswrite;
_PTHREAD_ATOMIC(uint32_t) _word;
_PTHREAD_ATOMIC(uint32_t) _waiters;
};
};
} pthread_rwlock_t;