From owner-cvs-all@FreeBSD.ORG Tue Apr 22 13:28:34 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E8A137B401; Tue, 22 Apr 2003 13:28:34 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8DF443FE3; Tue, 22 Apr 2003 13:28:33 -0700 (PDT) (envelope-from deischen@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 h3MKSX0U062249; Tue, 22 Apr 2003 13:28:33 -0700 (PDT) (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3MKSX64062248; Tue, 22 Apr 2003 13:28:33 -0700 (PDT) Message-Id: <200304222028.h3MKSX64062248@repoman.freebsd.org> From: Daniel Eischen Date: Tue, 22 Apr 2003 13:28:33 -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_cond.c thr_create.c thr_init.c thr_kern.c thr_private.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 20:28:34 -0000 deischen 2003/04/22 13:28:33 PDT FreeBSD src repository Modified files: lib/libpthread/thread thr_cond.c thr_create.c thr_init.c thr_kern.c thr_private.h Log: Add a couple asserts to pthread_cond_foo to ensure the (low-level) lock level is 0. Thus far, the threads implementation doesn't use mutexes or condition variables so the lock level should be 0. Save the return value when trying to schedule a new thread and use this to return an error from pthread_create(). Change the max sleep time for an idle KSE to 1 minute from 2 minutes. Maintain a count of the number of KSEs within a KSEG. With these changes scope system threads seem to work, but heavy use of them crash the kernel (supposedly VM bugs). Revision Changes Path 1.37 +6 -0 src/lib/libpthread/thread/thr_cond.c 1.41 +15 -1 src/lib/libpthread/thread/thr_create.c 1.49 +3 -0 src/lib/libpthread/thread/thr_init.c 1.56 +45 -19 src/lib/libpthread/thread/thr_kern.c 1.82 +3 -1 src/lib/libpthread/thread/thr_private.h