]> sourceware.org Git - glibc.git/commit
Fix lost wake-up when pthread_rwlock_timedrwlock times out.
authorTorvald Riegel <triegel@redhat.com>
Tue, 21 Apr 2015 18:34:21 +0000 (20:34 +0200)
committerTorvald Riegel <triegel@redhat.com>
Thu, 4 Jun 2015 13:31:59 +0000 (15:31 +0200)
commit3c9c61febede148b79d8509e16588152d99b3774
tree883d4c88b3ca19506e9449132bfe2c93b0798269
parentda7f049cad943629f16cd6e533214955edfd511d
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.
ChangeLog
NEWS
nptl/Makefile
nptl/pthread_rwlock_timedwrlock.c
nptl/tst-rwlock15.c [new file with mode: 0644]
This page took 0.044202 seconds and 5 git commands to generate.