]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The move to _retire() a thread in the GC instead of in the thread's
authormtm <mtm@FreeBSD.org>
Sun, 29 Jun 2003 00:12:40 +0000 (00:12 +0000)
committermtm <mtm@FreeBSD.org>
Sun, 29 Jun 2003 00:12:40 +0000 (00:12 +0000)
commitdffd0ee5d1bb64bc51ea5d11969a289a60abed63
tree8f176ce8a22cedcbeffe67b403b6510d65dc36bb
parent348e423dd913fabaea56f15eecca3d155723ee08
The move to _retire() a thread in the GC instead of in the thread's
exit function has invalidated the need for _spin[un]lock_pthread().
The _spin[un]lock() functions can now dereference curthread without
the danger that the ldtentry containing the pointer to the thread
has been cleared out from under them.
lib/libthr/arch/i386/i386/_setcurthread.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_spinlock.c