summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_stack.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-12-09 21:09:04 +0000
committerjhb <jhb@FreeBSD.org>2003-12-09 21:09:04 +0000
commit66cc89fadfbdc13372fd21d89b6a300f5a2f35d0 (patch)
treee36dcfd14da390fbb45217cc26f2728afc87360a /lib/libpthread/thread/thr_stack.c
parente6cf44c49dace75cb69cfec772707422391cbdfa (diff)
downloadFreeBSD-src-66cc89fadfbdc13372fd21d89b6a300f5a2f35d0.zip
FreeBSD-src-66cc89fadfbdc13372fd21d89b6a300f5a2f35d0.tar.gz
Revert the previous race fix and replace it with a more general fix. The
case of a turnstile having no threads is just one instance of the more general case where the thread we are examining has been partially awakened already in that it has been removed from the turnstile's blocked list but still has TDI_LOCK set. We detect that case by checking to see if the thread has already had a turnstile reassigned to it.
Diffstat (limited to 'lib/libpthread/thread/thr_stack.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud