From owner-cvs-src@FreeBSD.ORG Sun Aug 17 20:58:30 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BACCB37B401; Sun, 17 Aug 2003 20:58:30 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AF0043F75; Sun, 17 Aug 2003 20:58:30 -0700 (PDT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7I3wT0U049380; Sun, 17 Aug 2003 20:58:29 -0700 (PDT) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7I3wTkk049379; Sun, 17 Aug 2003 20:58:29 -0700 (PDT) Message-Id: <200308180358.h7I3wTkk049379@repoman.freebsd.org> From: David Xu Date: Sun, 17 Aug 2003 20:58:29 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_init.c thr_kern.c thr_nanosleep.c thr_private.h thr_sig.c thr_sigaction.c thr_sigmask.c thr_sigpending.c thr_sigprocmask.c thr_sigsuspend.c thr_sigwait.c thr_yield.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 03:58:31 -0000 davidxu 2003/08/17 20:58:29 PDT FreeBSD src repository Modified files: lib/libpthread/thread thr_init.c thr_kern.c thr_nanosleep.c thr_private.h thr_sig.c thr_sigaction.c thr_sigmask.c thr_sigpending.c thr_sigprocmask.c thr_sigsuspend.c thr_sigwait.c thr_yield.c Log: Treat initial thread as scope system thread when KSE mode is not activated yet, so we can protect some locking code from being interrupted by signal handling. When KSE mode is turned on, reset the thread flag to scope process except we are running in 1:1 mode which we needn't turn it off. Also remove some unused member variables in structure kse. Tested by: deischen Revision Changes Path 1.60 +3 -4 src/lib/libpthread/thread/thr_init.c 1.88 +9 -15 src/lib/libpthread/thread/thr_kern.c 1.23 +1 -2 src/lib/libpthread/thread/thr_nanosleep.c 1.97 +0 -12 src/lib/libpthread/thread/thr_private.h 1.68 +24 -29 src/lib/libpthread/thread/thr_sig.c 1.21 +0 -3 src/lib/libpthread/thread/thr_sigaction.c 1.17 +0 -3 src/lib/libpthread/thread/thr_sigmask.c 1.16 +1 -2 src/lib/libpthread/thread/thr_sigpending.c 1.17 +5 -4 src/lib/libpthread/thread/thr_sigprocmask.c 1.22 +1 -2 src/lib/libpthread/thread/thr_sigsuspend.c 1.33 +1 -2 src/lib/libpthread/thread/thr_sigwait.c 1.15 +2 -3 src/lib/libpthread/thread/thr_yield.c