diff options
author | jhb <jhb@FreeBSD.org> | 2001-08-10 21:08:56 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-08-10 21:08:56 +0000 |
commit | 54a0ded8d40ac4cc05cb95d789925432a192f167 (patch) | |
tree | 03a87caafd2a5e30157dfc8286d53fecf5a7d96a /lib/libpthread/thread/thr_init.c | |
parent | 22915435df9de745286e8fe0078066cb617c9350 (diff) | |
download | FreeBSD-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