diff options
author | Torvald Riegel <triegel@redhat.com> | 2015-04-21 20:34:21 +0200 |
---|---|---|
committer | Torvald Riegel <triegel@redhat.com> | 2015-06-04 15:31:59 +0200 |
commit | 3c9c61febede148b79d8509e16588152d99b3774 (patch) | |
tree | 883d4c88b3ca19506e9449132bfe2c93b0798269 /nptl/pthread_exit.c | |
parent | da7f049cad943629f16cd6e533214955edfd511d (diff) | |
download | glibc-3c9c61febede148b79d8509e16588152d99b3774.zip glibc-3c9c61febede148b79d8509e16588152d99b3774.tar.gz glibc-3c9c61febede148b79d8509e16588152d99b3774.tar.bz2 |
Fix lost wake-up when pthread_rwlock_timedrwlock times out.
If we set up a rwlock to prefer writers (and disallow recursive rdlock
acquisitions), then readers will block for writers that are blocked to
acquire the lock (otherwise, readers could constantly enter and exit,
and the writer would never get the lock). However, the existing
implementation did not wake such readers when the writer timed out.
This patch adds the missing wake-up.
There's no similar case for writers being blocked on readers.
Diffstat (limited to 'nptl/pthread_exit.c')
0 files changed, 0 insertions, 0 deletions