aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-rwlock15.c
AgeCommit message (Collapse)Author
2015-06-04Fix lost wake-up when pthread_rwlock_timedrwlock times out.Torvald Riegel
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.