From owner-cvs-src@FreeBSD.ORG Thu Aug 12 12:12:13 2004 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 4E18016A4CE; Thu, 12 Aug 2004 12:12:13 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 448A043D1F; Thu, 12 Aug 2004 12:12:13 +0000 (GMT) (envelope-from deischen@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7CCCDqH020281; Thu, 12 Aug 2004 12:12:13 GMT (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7CCCDjx020280; Thu, 12 Aug 2004 12:12:13 GMT (envelope-from deischen) Message-Id: <200408121212.i7CCCDjx020280@repoman.freebsd.org> From: Daniel Eischen Date: Thu, 12 Aug 2004 12:12:13 +0000 (UTC) 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_create.c thr_exit.c thr_init.c thr_kern.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: Thu, 12 Aug 2004 12:12:13 -0000 deischen 2004-08-12 12:12:13 UTC FreeBSD src repository Modified files: lib/libpthread/thread thr_create.c thr_exit.c thr_init.c thr_kern.c Log: As long as we have a knob to force system scope threads, why not have a knob to force process scope threads. If the environment variable LIBPTHREAD_PROCESS_SCOPE is set, force all threads to be process scope threads regardless of how the application creates them. If LIBPTHREAD_SYSTEM_SCOPE is set (forcing system scope threads), it overrides LIBPTHREAD_PROCESS_SCOPE. $ # To force system scope threads $ LIBPTHREAD_SYSTEM_SCOPE=anything threaded_app $ # To force process scope threads $ LIBPTHREAD_PROCESS_SCOPE=anything threaded_app Revision Changes Path 1.57 +4 -1 src/lib/libpthread/thread/thr_create.c 1.38 +2 -2 src/lib/libpthread/thread/thr_exit.c 1.65 +3 -1 src/lib/libpthread/thread/thr_init.c 1.111 +4 -4 src/lib/libpthread/thread/thr_kern.c