From owner-freebsd-threads@FreeBSD.ORG Fri Aug 6 22:22:13 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D689E16A4CE; Fri, 6 Aug 2004 22:22:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF0F043D48; Fri, 6 Aug 2004 22:22:13 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) i76MMCM8065955; Fri, 6 Aug 2004 22:22:12 GMT (envelope-from davidxu@freebsd.org) Message-ID: <41140578.6060009@freebsd.org> Date: Sat, 07 Aug 2004 06:26:00 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.1) Gecko/20040730 X-Accept-Language: en-us, en MIME-Version: 1.0 To: deischen@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: threads@freebsd.org cc: Robert Watson Subject: Re: A way to build and install libpthread as 1:1 as well as M:N? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 22:22:14 -0000 Daniel Eischen wrote: >Well, it didn't add much to the library to allow either 1:1 or M:N. >Here's a patch that lets you run in 1:1 mode if LIBPTHREAD_SYSTEM_SCOPE >is defined in the environment. I'm not stuck on its name, so feel >free to suggest something else. > > http://people.freebsd.org/~deischen/kse/libpthread.diffs > >Warning (*), you can still force 1:1 mode if you build the library >with -DSYSTEM_SCOPE_ONLY, so be sure to remove this when rebuilding >libpthread. > >(*) I think it's still useful for archs that don't run in M:N yet. > > > Looks fine to me, please go ahead.