Date: Wed, 2 Apr 2003 19:34:50 -0800 (PST) From: Jake Burkholder <jake@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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 Message-ID: <200304030334.h333YowN065903@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304030334.h333YowN065903>