cvs commit: src/lib/libthr/arch/i386/i386 _setcurthread.c
src/lib/libthr/arch/sparc64/sparc64
_setcurthread.c src/lib/libthr/thread thr_create.c thr_init.c
thr_private.h
Jake Burkholder
jake at FreeBSD.org
Wed Apr 2 19:34:54 PST 2003
jake 2003/04/02 19:34:50 PST
FreeBSD src repository
Modified files:
lib/libthr/arch/i386/i386 _setcurthread.c
lib/libthr/arch/sparc64/sparc64 _setcurthread.c
lib/libthr/thread thr_create.c thr_init.c thr_private.h
Log:
- Pass a ucontext_t to _set_curthread. If non-NULL the new thread is set
as curthread in the new context, so that it will be set automatically when
the thread is switched to. This fixes a race where we'd run for a little
while with curthread unset in _thread_start.
Reviewed by: jeff
Revision Changes Path
1.3 +6 -2 src/lib/libthr/arch/i386/i386/_setcurthread.c
1.2 +5 -2 src/lib/libthr/arch/sparc64/sparc64/_setcurthread.c
1.3 +4 -4 src/lib/libthr/thread/thr_create.c
1.3 +1 -1 src/lib/libthr/thread/thr_init.c
1.4 +2 -2 src/lib/libthr/thread/thr_private.h
More information about the cvs-src
mailing list