diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-10-01 09:11:35 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-10-01 09:11:35 -0400 |
commit | b85fec2ded3f005b877e25b63215c0d09d4a9f7f (patch) | |
tree | a990adab7dd2668c7d2b34bd6ef53056c21be309 /src/search/hsearch.c | |
parent | 8b98c09f8c6a0c366f06b7e6a4b3555a07e5244d (diff) | |
download | musl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.tar.gz musl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.tar.xz musl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.zip |
fix failure-to-wake in rwlock unlock
a reader unlocking the lock need only wake one waiter (necessarily a writer, but a writer unlocking the lock must wake all waiters (necessarily readers). if it only wakes one, the remainder can remain blocked indefinitely, or at least until the first reader unlocks (in which case the whole lock becomes serialized and behaves as a mutex rather than a read lock).
Diffstat (limited to 'src/search/hsearch.c')
0 files changed, 0 insertions, 0 deletions