summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_init.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-10 21:08:56 +0000
committerjhb <jhb@FreeBSD.org>2001-08-10 21:08:56 +0000
commit54a0ded8d40ac4cc05cb95d789925432a192f167 (patch)
tree03a87caafd2a5e30157dfc8286d53fecf5a7d96a /lib/libpthread/thread/thr_init.c
parent22915435df9de745286e8fe0078066cb617c9350 (diff)
downloadFreeBSD-src-54a0ded8d40ac4cc05cb95d789925432a192f167.zip
FreeBSD-src-54a0ded8d40ac4cc05cb95d789925432a192f167.tar.gz
Work around a race between msleep() and endtsleep() where it was possible
for endtsleep() to be executing when msleep() resumed, for endtsleep() to spin on sched_lock long enough for the other process to loop on msleep() and sleep again resulting in endtsleep() waking up the "wrong" msleep. Obtained from: BSD/OS
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud