mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-05 12:12:28 +00:00
Avoid pthread_rwlock_wrlock() starvation
This commit is contained in:
parent
55b7aa1632
commit
ec2db4e40e
3 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue