From owner-cvs-src@FreeBSD.ORG Mon Apr 28 16:56:13 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 7009137B401; Mon, 28 Apr 2003 16:56:13 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF1E043FE0; Mon, 28 Apr 2003 16:56:12 -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 h3SNuC0U018078; Mon, 28 Apr 2003 16:56:12 -0700 (PDT) (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3SNuC5D018074; Mon, 28 Apr 2003 16:56:12 -0700 (PDT) Message-Id: <200304282356.h3SNuC5D018074@repoman.freebsd.org> From: Daniel Eischen Date: Mon, 28 Apr 2003 16:56:12 -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/arch/i386/i386 thr_switch.S src/lib/libpthread/thread thr_cancel.c thr_concurrency.c thr_cond.c thr_create.c thr_detach.c thr_exit.c thr_find_thread.c thr_join.c thr_kern.c thr_mutex.c thr_nanosleep.c thr_priority_queue.c thr_private.h ... 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, 28 Apr 2003 23:56:14 -0000 deischen 2003/04/28 16:56:12 PDT FreeBSD src repository Modified files: lib/libpthread/arch/i386/i386 thr_switch.S lib/libpthread/thread thr_cancel.c thr_concurrency.c thr_cond.c thr_create.c thr_detach.c thr_exit.c thr_find_thread.c thr_join.c thr_kern.c thr_mutex.c thr_nanosleep.c thr_priority_queue.c thr_private.h thr_sigsuspend.c thr_sigwait.c thr_spinlock.c thr_yield.c Log: o Don't add a scope system thread's KSE to the list of available KSEs when it's thread exits; allow the GC handler to do that. o Make spinlock/spinlock critical regions. The following were submitted by davidxu o Alow thr_switch() to take a null mailbox argument. o Better protect cancellation checks. o Don't set KSE specific data when creating new KSEs; rely on the first upcall of the KSE to set it. o Add the ability to set the maximum concurrency level and do this automatically. We should have a way to enable/disable this with some sort of tunable because some applications may not want this to be the default. o Hold the scheduling lock across thread switch calls. o If scheduling of a thread fails, make sure to remove it from the list of active threads. o Better protect accesses to a joining threads when the target thread is exited and detached. o Remove some macro definitions that are now provided by . o Don't leave the library in threaded mode if creation of the initial KSE fails. o Wakeup idle KSEs when there are threads ready to run. o Maintain the number of threads active in the priority queue. Revision Changes Path 1.6 +4 -2 src/lib/libpthread/arch/i386/i386/thr_switch.S 1.19 +9 -3 src/lib/libpthread/thread/thr_cancel.c 1.2 +63 -45 src/lib/libpthread/thread/thr_concurrency.c 1.38 +7 -1 src/lib/libpthread/thread/thr_cond.c 1.42 +7 -0 src/lib/libpthread/thread/thr_create.c 1.21 +2 -13 src/lib/libpthread/thread/thr_detach.c 1.31 +5 -2 src/lib/libpthread/thread/thr_exit.c 1.11 +3 -0 src/lib/libpthread/thread/thr_find_thread.c 1.24 +6 -8 src/lib/libpthread/thread/thr_join.c 1.59 +121 -40 src/lib/libpthread/thread/thr_kern.c 1.34 +26 -9 src/lib/libpthread/thread/thr_mutex.c 1.19 +2 -2 src/lib/libpthread/thread/thr_nanosleep.c 1.14 +5 -4 src/lib/libpthread/thread/thr_priority_queue.c 1.84 +37 -9 src/lib/libpthread/thread/thr_private.h 1.16 +3 -2 src/lib/libpthread/thread/thr_sigsuspend.c 1.23 +2 -3 src/lib/libpthread/thread/thr_sigwait.c 1.15 +16 -15 src/lib/libpthread/thread/thr_spinlock.c 1.11 +4 -1 src/lib/libpthread/thread/thr_yield.c