cvs commit: src/sys/sys umtx.h src/sys/kern kern_thr.c kern_umtx.c
David Xu
davidxu at FreeBSD.org
Tue Oct 25 23:55:52 PDT 2005
davidxu 2005-10-26 06:55:46 UTC
FreeBSD src repository
Modified files:
sys/sys umtx.h
sys/kern kern_thr.c kern_umtx.c
Log:
do umtx_wake at userland thread exit address, so that others userland
threads can wait for a thread to exit, and safely assume that the thread
has left userland and is no longer using its userland stack, this is
necessary for pthread_join when a thread is waiting for another thread
to exit which has user customized stack, after pthread_join returns,
the userland stack can be reused for other purposes, without this change,
the joiner thread has to spin at the address to ensure the thread is really
exited.
Revision Changes Path
1.36 +5 -1 src/sys/kern/kern_thr.c
1.34 +3 -3 src/sys/kern/kern_umtx.c
1.17 +2 -0 src/sys/sys/umtx.h
More information about the cvs-src
mailing list