Up to [cvs.NetBSD.org] / src / lib / libpthread
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: cjep_staticlib_x
Revision 1.76 / (download) - annotate - [select for diffs], Sun Jun 14 21:33:28 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.75: +63 -32
lines
Diff to previous 1.75 (colored)
Another bug. The CAS loop in pthread_cond_signal() could race against the thread it is trying to awake. The thread could exit the condvar and then reinsert itself at the head of the list with a new waiter behind it. It's likely possible to fix this in a way that's wait-free but for now just fix the bug.